-->
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: Second Level Cache explanation
PostPosted: Mon Mar 15, 2004 4:48 pm 
Regular
Regular

Joined: Wed Jan 07, 2004 5:16 pm
Posts: 65
Location: CA, USA
Is there a definition anywhere of the differences between the caching provided by a Hibernate Session and caching provided by a 'Second Level Cache' provider such as OSCache, SwarmCache, TreeCache etc)

Is the 'Second Level Cache' the same for Hibernate as a Level 2 cache is for a CPU (for example) ?

Thanks,
Kevin Hooke

[This post does not relect the opinions of my Employer or it's clients in any way]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 15, 2004 5:00 pm 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
hibernate session is a unit bsiness cache, only to be used by ONE thread.
Second level cache as EHCache can be used by multiple hibernate session for example.
Hibernate sessions will hit the cache before hitting the database (all is done implicitly).
Second level cache is a good way to improve performance if you app has exclusive access to the db.


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.