How to clear data cache after report execution? #1380
Replies: 3 comments 2 replies
-
I cannot help, as I'm not using XML data sets. There are other memory parameters as well that probably should be considered, e.g. Anyway, there is a related "issue" for JDBC data sets, which I think is worth noting here: The way I handle these files to prevent running out of disk space in the long run: I am not using the web viewer, Instead I have integrated BIRT into a java program. Several of these programs run at the same time, controlled by a central controller program (written in Python). |
Beta Was this translation helpful? Give feedback.
-
Hmm... I see there is a method |
Beta Was this translation helpful? Give feedback.
-
Regarding "the cache is never cleared after each report execution, which can cause issues, because in some cases I get obsolete data in my report": I know this from scripted data sets. The caching mechanism AFAIK works like this: Thus, if you want to reuse a dataset, make sure that if the results are depending on a variable X, then X must be a dataset parameter. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've tried to enable data cache to speed up XML data access (workaround for issue #762):
However, I noticed that the cache is never cleared after each report execution, which can cause issues, because in some cases I get obsolete data in my report.
I've tried to use a different cache name for each execution, but as the old caches are never cleared I ended up with an OutOfMemory error.
I've tried to force a clear cache before each execution, before running the run task, using:
CacheMapManager.clearCache(Stream.of(cacheName).collect(Collectors.toSet()));
but this causes the report generation to freeze on this line, apparently because of a deadlock. Is there a proper way to clear the cache?
Beta Was this translation helpful? Give feedback.
All reactions