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

Provide putAll(map) and getAll(map) bulk operation on Cache and RemoteCache

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Duplicate
    • Minor
    • None
    • 5.1.4.FINAL
    • Core
    • None

    Description

      Currently Infinispan implements putAll(map) by means of looping over all entries and submitting them by means of put() one-by-one.
      This is very slow if you have a lot of synchronous updates to apply.

      It would be much more efficient, if a special bulk operation would be supported, so that all entries are sent to their respective replica nodes in one go. It would reduce the number of network roundtrips and related overhead and it would also make use of parallel execution, because some of the puts can be executed in parallel as they land on different nodes.

      Note: Hazelcast has this optimization. It often improves performance of bulk puts by at least a factor of 2 or 3, even if it is used between a client and Hazelcast server, i.e. a bulk operation is sent to a single grid node from a client and no parallelism can be used.

      Attachments

        Issue Links

          Activity

            People

              wburns@redhat.com Will Burns
              susanin_jira susanin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: