Report Viewing Performance Is Slow
What efficiencies can I add to increase the performance of my application?
Caching a report source in the session variable allows it to be used multiple times efficiently. When a report source is not cached, the process of creating a new report source multiple times becomes fairly expensive. Furthermore, caching a report source allows reports with or without saved data to be refreshed.
Listing 32.11 shows how to store and retrieve the report source object from session state.
//To store the report source in a session variable request.getSession().settAttribute("RptSrc",reportSource); ...