i have a website that uses
JSP, MySQL and runs on Apache,
Tomcat.
i have a few pages that need to access the MySQL database, especially for logging certain events. i find that whenever i enable this logging feature, the jsp page loading time becomes longer.
i want to instead make sure that logging happens in the background and does not affect the page loading time.
The logging does not need to be in real time. So it can be done in a delayed way after the page loads and in the background possibly using AJAX. The objective is that the user does not see any delay in the page loading.
can someone suggest some solutions for this issue ?
thanks.