cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Object cache - shared vs local
Date Tue, 27 Jun 2017 14:39:42 GMT

> On Jun 27, 2017, at 10:14 AM, John Huss <johnthuss@gmail.com> wrote:
> 
> I would be ok with disabling the shared cache except for a few entities. Is
> there a way with listeners to intercept queries for specific entities and
> return something manually and skip the query?

DataChannelFilter.onQuery(..) theoretically can do that.

> Using the query cache is great, except if you are firing relationships that
> weren't prefetched -- in that case you can't avoid using the shared cache
> and getting stale data.

True. You will have to guess upfront which relationships are needed if cache control is a
concern.

Andrus


Mime
View raw message