PDA

View Full Version : forced caching?



tchao
10-10-2003, 10:00 AM
is there anyway to for mondrian to cache all data
entirely in memory (assuming there's enough memory..throw exception is there's not)
so that mondrian never has to go to the database once the cubes have been loaded the first time?
also..how do i tell mondrian to refresh a cube (if i know the database has been updated)

jhyde
10-10-2003, 10:08 AM
In mondrian.properties, set mondrian.rolap.CachePool.costLimit to a very high value (say 2^31 - 1 = 2147483647). That should do the trick.
To clear the cache after modifying a cube, call mondrian.rolap.CachePool.instance().flush(). There is currently no way to flush just one cube.