question « Cache « JPA Q&A





1. Basic Hibernate Caching Question    stackoverflow.com

Does Hibernate use cache (second level or otherwise) if all I am doing is batch inserts? No entities are being requested from the database, and no generators are used. Also, would StatelessSession vs ...

2. Cache question, interesting...    forum.hibernate.org

Newbie Joined: Sun Sep 14, 2008 11:37 pm Posts: 2 I have set up a cache of read-only data. This data never changes, well it does, but not while the app in question is running so 'never' is close enough. The app runs okay, that isn't the problem, but it behaves strangely when I switch databases. Second level cache is on, ...

3. Hibernate and Caching, various Questions    forum.hibernate.org

Hello together, I use Hibernate 3.6 and Im pretty new to it. Im interested in using the 2nd Level Cache for it and Ive got various questions about it. It would be great if someone could answer them: 1. Is it correct that the 1st and 2nd Level Cache only cache objects which are loaded/stored/changed by Primary Key? 2. What about ...

4. A question about what can be cached    forum.hibernate.org

Hi all, I just ran into a very strange problem concerning caching. It appears with both EHCache as well as OSCache so I guess it's Hibernate-related. However I'm not versed in the inner workings of the caching mechanism as it always has been something that just worked, so I hope that someone can illuminate me on what's going on. Given the ...

5. EHCache and Hibnernate Question    forum.hibernate.org

I have a scenario where i am displaying the data in the database which changes frequently (changed by outside application)on a webpage using spring mvc, somewhat similar to a stock monitoring application. Currently i am using a daemon thread which fires on web container startup and queries the database every 45 secs and stores the data in the application wide hashmap ...

6. Caching question    forum.hibernate.org

7. Cache config question    forum.hibernate.org

Hi, I'm succesfully using EHCache with Hibernate 2.1.3 and I have a question about some log entries I get at startup that I would like to know more about. I use XDoclet to generate my mappings... When creating the Hibernate Configuration I get a bunch of Code: WARN [main] (Configurator.java:123) - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the ...

8. Question on Hibernate Cache with TreeCacheAOP    forum.hibernate.org

TreeCacheAOP is a transactional cache. That means, the cached data is persisted (and replicated across the nodes in the clustered environment) only when the transaction is commited. If i use this TreeCacheAOP as the second-level cache for Hibernate, will the cached data (in second-level cache) be persisted to the DB everytime the transaction is commited??? If yes, won't the performance be ...

9. selective caching question    forum.hibernate.org

We would like to use the JBossCache for replicating data across machines, however we don't want all the data to be replicated. It would be really nice if we could set a "isCacheable" boolean on objects we would like to be cached. I think the only way to prevent data from replicated is to prevent hibernate from adding the objects into ...





10. Cache questions    forum.hibernate.org

11. Hibernate cache question?    forum.hibernate.org

Consider this situation. Server is being hit with identical requests for data. If I set up a cache on the class level, data will be cached on the first request. However following request will still hit the db to retrieve indexes and then based on the index it will retrieve data from the cache. Alternatively I can set up a query ...

12. Question/Hibernate Cache case non sensitive    forum.hibernate.org

13. Couple questions about ehcache    forum.hibernate.org

I'm a newbie with the 2nd level cache and had a few questions: 1. When I declare a cache element in the mapping file for a persistent entity, do I then have to configure that object in the ehcache config? 2. Do I need to enter the path to the ehcache-config.xml file as a hibernate property? If not, is there a ...

14. Caching question.    forum.hibernate.org

Say i perform the following query. List objects =session.createCriteria(SomeObject.class).add(Restrictions.between("someIDField",r1,r2)).setCacheable(true).list(); With r1 = 0 and r2 = 100. Will Hibernate be smart enough to retrieve from the cache if i perform a subsequent query with r1 = 50 and r2 = 60 since these objects have already been cached from the previous query?

15. Question about hibernate cache    forum.hibernate.org

16. Caching question    forum.hibernate.org

After caching the data needed for a request using hibernate secondary cache (ehcache) if the database is manually shutdown at any point to simulate a database down scenario, JBOSS tries to ping the database and finds that the db is unavailable and none of the requests go through although we have all the required data cached. Is there any configuration that ...





17. Question on Caching-Strategies... *ignore please*    forum.hibernate.org

Hello all, I have a question for my understanding regarding the concurrency strategies of the second level cache. In Java Persistence with Hibernate the description of the nonstrict-read-write cache says "Makes no guarantee of consistency between the cache and the database. If there is a possibility of concurrent access to the same entity, you should configure a sufficiently short expiry timeout. ...

18. General question about caching.    forum.hibernate.org

You should enable statistics and view the cache statistics to see if the entity is being cached. You can also turn on the logger for the cache class to see if it is rejecting the attempt to cache the object. If I was a betting man then I would think that your object is being rejected for caching.