-->
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.  [ 3 posts ] 
Author Message
 Post subject: First Level and Second Level Cache
PostPosted: Thu Feb 10, 2011 5:35 am 
Newbie

Joined: Thu Feb 10, 2011 5:26 am
Posts: 3
Hi,

Can anyone explain what is the main difference between these two cache and when we used each one.

Pls reply....

Thanks,
Pavan


Top
 Profile  
 
 Post subject: Re: First Level and Second Level Cache
PostPosted: Thu Feb 10, 2011 6:20 am 
Newbie

Joined: Fri Jan 07, 2011 7:23 am
Posts: 19
Hi,

first level cache is the Hibernate session (or the JPA persistence context), you're using this automatically so the more important cache is the socalled 2nd level cache.
This one is independend from a session and sits between the 1st level cache and the database.
Apart from that google is your friend, see e.g. this somewhat old but still valid introduction http://www.javalobby.org/java/forums/t48846.html
or the official documentation: http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html/performance.html#performance-cache

Robin.


Top
 Profile  
 
 Post subject: Re: First Level and Second Level Cache
PostPosted: Thu Feb 10, 2011 6:56 am 
Newbie

Joined: Thu Feb 10, 2011 5:26 am
Posts: 3
Thanks 4 ur reply.....


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.