Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

hibernate cache

Posted on 2011-03-25
5
Medium Priority
?
496 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 1000 total points
ID: 35221043
0
 
LVL 19

Assisted Solution

by:Jim Cakalic
Jim Cakalic earned 1000 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses

604 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