Solved

hibernate cache

Posted on 2011-03-25
5
431 Views
Last Modified: 2012-05-11


Hi,

I am new to hibernate cache. I was not clear on first, second, third etc levels of cache. why we use cache and where and how we use it. Any ideas, resources, links, sample code highly appreciated. thanks in advance.
0
Comment
Question by:gudii9
  • 2
  • 2
5 Comments
 
LVL 20

Accepted Solution

by:
Sathish David  Kumar N earned 250 total points
ID: 35221043
0
 
LVL 19

Assisted Solution

by:Jim Cakalic
Jim Cakalic earned 250 total points
ID: 35223191
You're right - Hibernate has various levels of caching with various configurability. Caching is an important mechanism for improving performance but, used incorrectly, can actually degrade performance. The most difficult to understand/configure are the 2nd level cache and the query cache. Here is an article I consider quite helpful in describing Hibernate caching and particularly the query cache. It also has links to other articles on similar topics.

http://tech.puredanger.com/2009/07/10/hibernate-query-cache/

Regards,
Jim
0
 
LVL 7

Author Comment

by:gudii9
ID: 35368942
any links with more sample code to try. please advise
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 35372546
0
 
LVL 7

Author Comment

by:gudii9
ID: 35470842
i have gone through the links
>.>The third cache type is the second level cache. The second level cache is responsible for caching objects across sessions.

i have not understood above statement. please advise
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 196
java 8 lambda expresssions exception handling 3 91
Unhandled exception type Exception 18 31
What's wrong with this code? 4 23
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question