Community
Participate
Working Groups
Enhance the existing query cache with the following: - an option to ignore caching of null, this improve the ability of using the query cache for a secondary key index - allow the cache type to be set, currently it uses the CacheIdentityMap, but Full or Soft would also be desirable - allow the invalidation time to be randomized, this helps with server bottlenecks by avoiding everything becoming invalid at the same time
Created attachment 151074 [details] patch
SVN main commit: Bug#293728 - Query cache enhancements https://bugs.eclipse.org/bugs/show_bug.cgi?id=293728 Code review: Andrei (pending) Changes: - Adds support for setting cache type on query cache. - Adds support for ignoring null results on query cache. - Adds support for randomizing invalidation, to avoid invalidation bottlenecks. - Adds query hints for new query cache options. - Updated query cache test.
Last time I tried query cache it was locking coarse grain so was blocking lot of concurrent similar requests. Also it seems unlike Hibernate that the query cache is not automatically invalided when what is referencing is updated by a transaction. Please consider fixing both issues.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink