I have developed an application using RADS. When i searched for the particular report, it takes pretty much time to load the data from database.
Reviewed the query and found tht it is optimized. Also done jsp precompilation option in RADS.
But still it takes longer time to load the screen. Below is the output in milliseconds. Can anyone guide me on this.
For fist time:
time for Query :: 24391 ms
time for coming out of DAO:: 17968 ms
time for coming out of Servlet :: 23968 ms
For second time
time for Query :: 4391 ms
time for coming out of DAO:: 7968 ms
time for coming out of Servlet :: 7968 ms
Probably on the first run all the related data and code gets loaded from disk into the caches, and does any other set-up tasks like opening teh connection, compiling the query etc., and then it runs from memory over the already established connection. It happens everywhere, the first time something runs is always slower. You can try to optimize by keeping as much of existing infrastructure open between the calls and reusing it.
subject: it takes longer time to show the report for the first time