Solved

hibernate cache

Posted on 2011-03-25
5
445 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
xampp tool 12 56
fibonacci ten numbers 4 46
even odd program using while loop 3 60
Eclipse Java import and method not resolved 4 52
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
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…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

821 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