[infinispan-issues] [JBoss JIRA] (ISPN-4093) Inefficient implementation of containsKey in distribute cache for large entries
Mikolaj Gierulski (JIRA)
issues at jboss.org
Tue Mar 11 12:05:11 EDT 2014
Mikolaj Gierulski created ISPN-4093:
---------------------------------------
Summary: Inefficient implementation of containsKey in distribute cache for large entries
Key: ISPN-4093
URL: https://issues.jboss.org/browse/ISPN-4093
Project: Infinispan
Issue Type: Enhancement
Components: Core
Affects Versions: 6.0.0.Final
Reporter: Mikolaj Gierulski
Assignee: Dan Berindei
Priority: Minor
As far as I understand, containsKey on distributed cache performs a GetKeyValueCommand (which may be executed remotedly) and checks if the result was null.
This results in loading the whole entry, which may be expensive when dealing with large entries.
In our system we introduced a KeyExistsTask implementing DistributedCallable, which we submit with distributed execution framework. This task performs cache.containsKey on keys local node avoiding unnecessary transfer of possibly large amount of data.
In our case this brought a significant improvement of containsKey operation.
Best regards,
Mikolaj
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list