[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3480) Add flag to disable timestamps cache; useful for optimizing environments with only natural ID queries
Elias Ross (JIRA)
noreply at atlassian.com
Sat Sep 13 16:18:04 EDT 2008
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list