[infinispan-issues] [JBoss JIRA] (ISPN-4093) Inefficient implementation of containsKey in distribute cache for large entries
Tristan Tarrant (Jira)
issues at jboss.org
Mon Jan 21 10:54:00 EST 2019
[ https://issues.jboss.org/browse/ISPN-4093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Tarrant reassigned ISPN-4093:
-------------------------------------
Assignee: Dan Berindei
> 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
> Labels: contains, dist
>
> 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 was sent by Atlassian Jira
(v7.12.1#712002)
More information about the infinispan-issues
mailing list