Re: [Opensymphony-oscache] groups usage for a newbie

Andres March <[email protected]> Fri, 29 Apr 2005 01:28:51 -0700
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <[email protected]>
if an object only belongs to one parent group, you should not have any 
duplicated data.  Of course, if it does, you would have a duplicate for 
each group.

another possibility is if these relationships are represented in the db 
and you are using hibernate then when you query for objects of a 
particular group the results could be stored in the query cache.  the 
results being just a list of ids.  the objects themselves would be 
stored by their pk. 

graulle wrote:

>I am not in a clustered env.
>
>Creating multiple caches is possible but in that case I will have several copies of "child" objects in memory which is not wished for memory constraints.
>
>Another idea I had is using a key for each "accesor" to the objet, in my case at most 2, one for the full access and another one for the parent access.
>I.E. :
>key = "id" for full access
>key = "parent:id" for a parent access
>
>but in that case I guess the object is also duplicated so it does not solve my memory issue.
>
>---------------------------------------------------------------------
>Posted via Jive Forums
>http://forums.opensymphony.com/thread.jspa?threadID=1866&messageID=5749#5749
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [email protected]
>For additional commands, e-mail: [email protected]
>
>  
>