cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nishant Neeraj <>
Subject Re: Individual Object Caching
Date Fri, 29 Jan 2010 08:26:35 GMT
OK. So, even if a new query results in individual object cache to be flushed, we are still
avoiding DB hits becasue we have query result cache in place.

Does query result cache gets individually flushed, or the only way is group flush [1]? Actually,
I want to cache User objects (or query results) forever. User object is retrieved when user
logs in using an expression like "user_name=$name and password=$pwd". I want to make sure
that whenever a user updates his information the object and query result for that particular
user gets flushed, not all the users that were retrieved using "user_name=$name and password=$pwd"
expression. Please suggest.


--- On Thu, 28/1/10, Andrus Adamchik <> wrote:

From: Andrus Adamchik <>
Subject: Re: Individual Object Caching
Date: Thursday, 28 January, 2010, 3:36 PM

Yes, a query refreshes cached objects (unless the query itself is served from cache).


On Jan 28, 2010, at 11:59 AM, Nishant Neeraj wrote:

> Hi,
> I am a bit confused on the way Cayenne handles object-cache. It sounds to me that object-cache
gets invalidated [1], whenever a call like this takes place
> SelectQuery query = new SelectQuery(PaintingType.class, ...);
> return (List<PaintingType>)context.performQuery(query);
> }
> Now, there are multiple users accessing the same page that calls loadMenu(), as per the
document [1], for each user Object-Cache for this would be flushed and restores.
> [1]
> RegardsNishant
>      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!

      Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message