invalidation « Cache « JPA Q&A





1. Cache invalidation messages    forum.hibernate.org

We are developing a Hibernate (version 2.1.2) solution using swarmcahe clustered cache. When we use HQL to query the database we noticed that unchanged objects that already exist in the secondary cache result in a multicast of invalidation messages for these particular objects. This behavoir causes an undesired network traffic. I am not sure if this is a configuration problem or ...

2. Invalidation of 2nd level Cache    forum.hibernate.org

I have multiple classes that are mapped to the same table and I suspect that this will cause problems for the 2nd level cache. As I understand it (please correct me if I am wrong) there is one cache per rootclass and flushing an object will only invalidate the entry in it's own cache regardless of to which table it is ...

3. Ehcache and "manual" 2-node cluster invalidation    forum.hibernate.org

We've got 2 servers in our cluster and we're using Hibernate 2.1.7c. We have three legacy databases sharing the same schema but with different data, so we have three SessionFactories. Currently, we have permission to use Ehcache, and JBossCache permission is pending but who knows when we'll be able to take it into use. Thus we need a solution for using ...

4. executeUpdate causes coarse cache invalidation    forum.hibernate.org

Author Message Stefan Fleiter Post subject: executeUpdate causes coarse cache invalidation Posted: Thu Nov 02, 2006 1:27 pm Newbie Joined: Thu Jun 09, 2005 11:28 am Posts: 6 Location: Karlsruhe, Germany Code and logfile output follows, but I'll describe my problem first. I am developing an application and want to mix bulk-updates with normal hibernate operations. The bulk updates ...

5. Cache Invalidation problem.    forum.hibernate.org

Hello, I'm having a weird problem that I think might be cache related but I'm not sure at this point. I have created a TestCase that does the following: - Save an object using an outside application (thru Selenium) - Fetch the object using hibernate and detached objects (session is opened then closed immediately). - Delete the object using the outside ...

6. Cache Invalidation with Large Collections    forum.hibernate.org

Hey all, I have a large DB table I need to insert into and was therefore using session.createSQLQuery() to avoid having to load the collection to do this. This however seems to invalidate all my caches. I know that it has no effect on any of them. How can I prevent the caches from being invalidated? Cheers, Dan