Re: [Hibernate] Question about caching

2004-09-15 Thread Gavin King
ReadWriteCache does stuff to preserve txn isolation. Things remain "locked" for a bit longer than you might expect. You need to do the lookup in a second txn, that starts unambiguously *after* the updating txn ends. Michał Mosiewicz wrote: I've been testing cache. I've noticed there is much les

[Hibernate] Question about caching

2004-09-15 Thread Michał Mosiewicz
I've been testing cache. I've noticed there is much less cache hits that I supposed it should be. Then I discovered the following behaviour: DEBUG [Thread-0] (ReadWriteCache.java:68) - Cache lookup: 40201 DEBUG [Thread-0] (ReadWriteCache.java:78) - Cache hit: 40201 DEBUG [Thread-0] (ReadWriteCache