-->
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.  [ 1 post ] 
Author Message
 Post subject: Identity preserving second level cache?
PostPosted: Wed Dec 14, 2005 9:56 am 
Newbie

Joined: Mon Oct 24, 2005 2:19 pm
Posts: 10
Is it possible to implement a cache that applies to the whole application (independent of sessions) and avoids disassembling/assembling objects?

There's one specific class in our application that is read-only and for which an internal registry with all objects is always kept in memory anyway.
(This is to enable complicated business specific queries and searching. Maybe this could have been done with a lot of stored procedures, but that's not the case currently.)

Since all the objects are in memory anyway can I tell Hibernate somehow to reuse them?
This would save us to update/merge these instaces in a lot of places.

I have tried writing a custom second level cache, but that can not make use of the existing objects because it already receives the objects in disassembled state. Besides this uses at least twice the memory...


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

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.