Solved

hibernate cache

Posted on 2011-03-25
5
467 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SHA2 certs for IIS AND Java? 2 132
throw exception 21 75
Java: anonymous class 4 51
Crystal Reports Licensing Questions 4 80
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

740 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