-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: 2nd level cache - way of storing data
PostPosted: Mon Feb 25, 2008 6:00 pm 
Newbie

Joined: Mon Feb 25, 2008 4:28 pm
Posts: 2
In what form does Hibernate put objects into 2nd level caches? How fine-grained is 2nd level caching? Does hibernate manages 2nd level cache'ing on object basis or field basis? I'm asking because I need to know whether 2nd level caching solutions have a way of replicating in cluster only field level changes instead of replicating whole object. Terracotta video-seminars state that Hibernate caches serialized representation of object in 2nd-level-cache, but I'm not 100% sure they're right, because they use it as an argument for using their field-replication-based solution.


Top
 Profile  
 
 Post subject: Re: 2nd level cache - way of storing data
PostPosted: Mon Feb 25, 2008 6:11 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
Hibernate copies values in L2 Cache, so the Person#1 object would be [1, "Some Person", "Some Family", 42, "Some Address"]. And hibernate does not manage L2 caches to that degree. It almost only puts values and gets values. Distributed caches are transparent to hibernate, and I don't believe there is a cache that supports field replications. However, asynch invalidation is not a bad strategy at all.


Farzad-


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.