Add flag to disable timestamps cache; useful for optimizing environments with only natural
ID queries
-----------------------------------------------------------------------------------------------------
Key: HHH-3480
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3480
Project: Hibernate Core
Issue Type: New Feature
Components: caching (L2)
Affects Versions: 3.3.0.SP1
Reporter: Elias Ross
Attachments: disable-ts-cache.txt
I've enabled the Hibernate query cache. And I've discovered that by using Criteria
queries of "natural ID"s solely, there is little reason to replicate the
timestamp cache; especially when using clustering.
I added a property setting disables the timestamp cache entirely. What happens in cases
where a non-"natural ID" query is made is that the query simply occurs without
caching at all, so this works fine.
This is a patch, applied against Hibernate 3.3 branch which allows for timestamp caching
to be disabled, i.e., by setting:
hibernate.cache.use_timestamps_cache=false
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira