File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "setCacheMode(CacheMode.IGNORE)" Watch "setCacheMode(CacheMode.IGNORE)" New topic


nimo frey
Ranch Hand

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


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?

I agree. Here's the link:
subject: setCacheMode(CacheMode.IGNORE)
It's not a secret anymore!