Solved

hibernate cache

Posted on 2011-03-25
5
398 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

760 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now