[Mondrian] Clean cache for a specific cube

Luc Boudreau lucboudreau at gmail.com
Wed Feb 9 10:48:44 EST 2011


Pedro,

I suggest reading the Mondrian Cache Control docs.

http://mondrian.pentaho.com/documentation/cache_control.php

Here's an example.

Connection connection;
CacheControl cacheControl = connection.getCacheControl(null);
for (Cube cube : connection.getSchema().getCubes()) {
    cacheControl.flush(
        cacheControl.createMeasuresRegion(cube));
}

Cheers!

Luc


On Wed, Feb 9, 2011 at 10:45 AM, Pedro Alves <pmgalves at gmail.com> wrote:

>
>
> Hey there.
>
>
> I've mostly been cleaning my mondrian cache on a daily basis, but there's a
> particular cube (or schema) who's etl will run hourly.
>
>
> How can I clean the cache for that cube only?
>
>
> Thanks
>
> _______________________________________________
> Mondrian mailing list
> Mondrian at pentaho.org
> http://lists.pentaho.org/mailman/listinfo/mondrian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20110209/d7856718/attachment.html 


More information about the Mondrian mailing list