Report Caching Parameters
20 October, 2009
ReportCacheSize
20
ReportCacheMaxAge
86400000
Q1:if run report over ReportCacheSize cached data goes where? FIFO manner?
Q2:can we set ReportCacheMaxAge one week or one month .. log term?
is this bad setting?
Q3:we want to caching views and reports automatically with scheduling is
this possible?
Q4:is ReportCacheSize depends on what resources? RAM? Java HeapSize? How
to extent cache ability?
2) It?s probably not a good idea to set up long-term caching. Another approach which would be better is going into the category control and under "report version control" selecting "keep archived report result sets" and then setting a long delete period.
3) This is possible if you?re using the above approach to storing data. If you have set up a category to keep archived result sets you can schedule the archiving of reports within that category. This can be done when the report is being saved by changing settings under "how should report data be refreshed?". More information on this can be found on pages 28 and 81 of the users guide.
4) The JVM heap size is relevant to how much data can be cached, but as the ReportCacheSize specifies the number of reports that can be cached instead of the amount of space available for caching there?s no "direct" correlation between ReportCacheSize and the amount of space available for caching. If you use the approach from the answers to questions two and three you won?t have to worry about extending the amount of memory available for long term caching.
Each View in Yellowfin has a "Default Cache Period" which specifies how long a result set may be stored in the cache. By default this is set to zero, which effectively disables caching.
There are also some system-wide settings that affect the cache. These are:
ReportCacheSize - the maximum number of report results that can be stored in the cache at any given time. Default value = 20.
ReportCacheMaxAge - the maximum age (in milliseconds) that a report may be stored in the cache. Default value = 86400000 (24 hours). The actual cache time for a result set it the smaller of the ReportCacheMaxAge, and the Default Cache Period on the report?s view.
These settings are stored in the file YellowfinappserverwebappsROOTWEB-INFweb.xml :
ReportCacheSize
20
ReportCacheMaxAge
86400000
If you update these values you will need to restart Yellowfin for them to take effect.
thanks
Robin