[infinispan-issues] [JBoss JIRA] (ISPN-8189) SizeCommand unnecessarily unmarshalls keys to count

Tristan Tarrant (JIRA) issues at jboss.org
Wed Aug 9 05:23:00 EDT 2017


     [ https://issues.jboss.org/browse/ISPN-8189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tristan Tarrant updated ISPN-8189:
----------------------------------
    Status: Open  (was: New)


> SizeCommand unnecessarily unmarshalls keys to count
> ---------------------------------------------------
>
>                 Key: ISPN-8189
>                 URL: https://issues.jboss.org/browse/ISPN-8189
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 9.1.0.Final
>            Reporter: Tristan Tarrant
>            Assignee: Tristan Tarrant
>             Fix For: 9.1.1.Final
>
>
> The SizeCommand uses cache.keySet().stream().count() to count keys, but if the cache is using binary storage, this unmarshalls each key.
> Using the identityencoder allows us to make this operation much cheaper.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list