[
https://jira.jboss.org/jira/browse/ISPN-337?page=com.atlassian.jira.plugi...
]
Manik Surtani commented on ISPN-337:
------------------------------------
Better yet, I improved the way the CacheLoaderInterceptor works so that it calls load()
directly, chks if the result is null, and if loading is needed, proceeds with using the
entry already loaded.
Cache Store implementations are inefficient with containsKey() calls
--------------------------------------------------------------------
Key: ISPN-337
URL:
https://jira.jboss.org/jira/browse/ISPN-337
Project: Infinispan
Issue Type: Task
Components: Loaders and Stores
Reporter: Manik Surtani
Assignee: Manik Surtani
Fix For: 4.0.0.GA
Currently uses the default impl in AbsractCacheStore, which is to call loadEntry(). This
is inefficient since usage of this API is to check the existence of the key, and then load
the key. This approach to implementing containsKey() leads to an entry being loaded twice
which can be costly.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira