jamshaidiqbal120 Posted November 2, 2021 Share Posted November 2, 2021 I am having some reports in Jasper Reports Server developed using Jasper Studio. The data is being loaded from the Rest API. I want to decrease the load time and make the report load faster. Is there any way I could achieve that?My data is being displayed in Charts in the report. **What I have tried?** I have tried looking into ad-hoc cache but could not integrate it. The guide provided is for **v4.7** of the Jasper report server. I am using v7 of the server and it is running in a docker container.Is there any way I could decrease the load time of reports? If Ad-Hoc Cache is an option, then how can I make it work in v7 of Jasper Server?Thanks Link to comment Share on other sites More sharing options...
jonmcano Posted November 3, 2021 Share Posted November 3, 2021 Is the REST endpoint static (url and parameters don't change)? Are you using Jaspersoft Version 7.9.0? If using 7.9 could be possible to use ehcache, but this would really only work if URL request is same and realize the cache is static for some period of time so subsequent calls would interact with same data since it is cached. Link to comment Share on other sites More sharing options...
jamshaidiqbal120 Posted November 4, 2021 Author Share Posted November 4, 2021 @jonmacano I am using v7.0 from docker hub. Yeah, the parameters do not change for a single report. if another report is run, it changes with the report. Could you please guide me regarding v7.0? thanks Link to comment Share on other sites More sharing options...
Solution yama818 Posted November 7, 2021 Solution Share Posted November 7, 2021 I haven't tried it, but the 'Data Snapshots' setting may be useful.https://community.jaspersoft.com/documentation/tibco-jasperreports-server-administrator-guide/v790/enabling-data-snapshotsNormally, StudioReport does not have a cache like AhohcView/Report.However, with this setting, it seems that snapshots can be used instead of cache for StudioReport.Ad hoc caches are fast because they are stored in memory.However, snapshots are stored in the repository database.Therefore, it seems that the speedup is only due to the fact that the process of re-fetching data is omitted.In other words, it is important to note that this is different from so-called 'in-memory' caching.And it seems that we need to consider the timing of the snapshot update according to the system requirements.I hope this is useful to you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now