This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes setCacheMode(CacheMode.IGNORE) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "setCacheMode(CacheMode.IGNORE)" Watch "setCacheMode(CacheMode.IGNORE)" New topic
Author

setCacheMode(CacheMode.IGNORE)

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
I want to increase the speed of my query-result...When I use this:

setCacheMode(CacheMode.IGNORE)

within a query, does it involves the First-Level-Cache?

In the API it s said:

Controls how the session interacts with the second-level cache and query cache.



Is the query cache within the first-level-cache?

When I say "CacheMode.IGNORE", does the query-result have the default Transaction-Isolation-Level?

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: setCacheMode(CacheMode.IGNORE)
 
Similar Threads
pagination via ScrollableResults or via setFirstResult
Hibernate and millions of rows..
Hibernate pagination performance problem
Hibernate second level cache questions
session.clear when to use