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

Add the ability to fetch a set of keys at once (getAll)

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.2.0.CR1
    • Component/s: Core
    • Labels:
      None

      Description

      When a transaction knows in advance about the set of keys it needs to read, this cache.getAll(k1,k2,..kn) method can bring a some performance improvement:
      1. all the keys can be fetched from remote nodes in parallel
      2. keys that map to the same node can be grouped and fetched in the same RPC request

      Note that 1. can be be achieved even at this time by using Cache.getAsync(K) method - that's not as elegant though as it requires the user to write the code the code that waits on the Future objects that are returned.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  william.burns Will Burns
                  Reporter:
                  mircea.markus Mircea Markus
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: