Hitachi Vantara Pentaho Community Wiki
Child pages
  • Mondrian Cache Priming and Cache Control in the BI Server

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin


Option 2: Fine grained cache control

With Mondrian's CacheControl API, you have much more control over what portions of the cache you decide to wipe out. Taking our cache priming action sequence example above, we'll make some calls into the cache control API to demonstrate how to clear the cache.  The same rules apply for getting a connection, also the same reverse rules apply for determining if the cache control was successful.


Code Block
var conn = shared_olap_connection.shareConnection().getConnection();
var salesCube = conn.getSchema().lookupCube("SteelWheelsSales", true);
var schemaReader = salesCube.getSchemaReader(null).withLocus();
var cacheControl = conn.getCacheControl(null);