Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8189

SizeCommand unnecessarily unmarshalls keys to count

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 9.1.0.Final
    • Fix Version/s: 9.1.1.Final
    • Component/s: Core
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                NadirX Tristan Tarrant
                Reporter:
                NadirX Tristan Tarrant
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: