read « Cache « JPA Q&A





1. When does Hibernate read from second-level cache and when from DB?    stackoverflow.com

As far as I know Hibernate let's you configure entities and collections to be stored in a second-level cache. When does Hibernate try to read these cached entities from the second-level ...

2. Cache for large read only database recommendation    stackoverflow.com

I am building site on with Spring, Hibernate and Mysql. The mysql database contains information on coordinates and locations etc, it is never updated only queried. The database contains 15000 rows of ...

3. having trouble with jpa, looks to be reading from cache when told to ignore    stackoverflow.com

i'm using jpa and eclipselink. it says version 2.0.2.v20100323-r6872 for eclipselink. it's an SE application, small. local persistence unit. i am using a postgres database. i have some code the wakes ...

4. Benchmark - second reading with empty cache    forum.hibernate.org

Author Message markos Post subject: Benchmark - second reading with empty cache Posted: Mon May 31, 2004 6:35 am Newbie Joined: Mon May 31, 2004 6:26 am Posts: 18 I am writing Graduation Thesis about Hibernate. At the moment I am making some benchmark, to learn more about caching. (It's not meant for benchmark testing). I inserted 5000 rows ...

5. read-only caching    forum.hibernate.org

Hi, we have a data model pattern on a few tables where data is only ever inserted or selected. Can we use the read-only cache usage model if we are just doing inserts? The documentation is unclear: "14.3.2: If your application needs to read but never modify instances of a persistent class, a read-only cache may be used." Creation is not ...

6. read-only cache conundrum    forum.hibernate.org

hi all, i'm using jboss 3.2.3 and hibernate 2.1.2. the application i'm developing has 40+ hibernate objects of which 75% of them are mostly config and rarely change. i'm using jboss tree cache and have a question regarding the different cache strategies i can use. my hibernate objects can be divided between runtime and config. the runtime objects (25%) are using ...

7. H3: read-only cache and save operation    forum.hibernate.org

I have a object with read-only cache, but initialy I want to write it via hibernate. That is not possible, because it throws an exception: java.lang.UnsupportedOperationException: Can't write to a readonly object at org.hibernate.cache.ReadOnlyCache.lock(ReadOnlyCache.java:43) at org.hibernate.action.CollectionAction.beforeExecutions(CollectionAction.java:70) at org.hibernate.engine.ActionQueue.prepareActions(ActionQueue.java:246) at org.hibernate.engine.ActionQueue.prepareActions(ActionQueue.java:152) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:273) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:675) 1: On a save operation this should not matter right? I cannot break anything by ...

8. Reading object out of the second level cache: HOWTO ??    forum.hibernate.org

Hibernate version: 3 Hi, Is there any way to avoid database access if the second level cache is filled already ? What I do is an initial load of all the objects I want to work with during my session. If a class then tries to load an object which is not in the cache yet (using a load() ), hibernate ...

9. caching files not being read    forum.hibernate.org

Author Message mgconno Post subject: caching files not being read Posted: Tue Jun 07, 2005 11:16 am Newbie Joined: Tue Jun 07, 2005 10:46 am Posts: 15 I am not generally one to ask for help, but after reading all the appropriate documentation (both Hiberante and EHCache) and searching through the forums I am out of ideas for my ...





10. caching collection of read-only objects    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0 Mapping documents: membership.hbm.xml: ...

11. read-only cache that automatically expires?    forum.hibernate.org

12. read only cache for a collection?    forum.hibernate.org

parent_seq ...

13. Cache.read() in Hibernate 3.0.5    forum.hibernate.org

I have noticed a new method in Cache interface in Hibernate 3.0.5: read(Object key) As it follows from the javaDocs, this method "Get an item from the cache" and method get(...), gets "...an item from the cache, nontransactionally". I have tested a few simple scenarios but method read(..) has not been called in any of them. I have tried save(...), evict(...), ...

14. Read only cache for mutable class    forum.hibernate.org

15. what does hibernate read from the cache?    forum.hibernate.org

i tried to find answer via google, but i failed. my questions are: when i load objects like this: "from a left join fetch whatever left join fetch subobject where whatfield = whatevervalue" what exactly does hibernate try to load from the cache, and what does it not? let's say i have some a's cached, and some not. are all read ...

16. 2nd level read only caching and synchronisation    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0.5 Hi, I have a query about Hibernate 2nd level caching which I wondered whether anyone knows the answer to? We have a set of data in a couple of tables in an Oracle database that is maintained by an external application. We don't mind if the application's view ...





17. Trouble with read-only caching    forum.hibernate.org

... ...

18. Hibernate + JBC not reading from cache: spatial or view tabl    forum.hibernate.org

Hibernate 3.3.1.GA Hibernate-spatial 1.0-M2 Spring 2.5.6 JBC 3.0.3.GA I am noticing that Hibernate + JBC is not retrieving a particular cached query. They query involves a view table and it also involves querying on a spatial field. I have searched the forums and am finding nothing about this topic. Note that the same configuration does retrieve cached results from a query ...