]
Pedro Ruivo updated ISPN-2041:
------------------------------
Fix Version/s: 8.0.0.Final
(was: 7.2.0.Final)
Provide putAll(map) and getAll(map) bulk operation on Cache and
RemoteCache
---------------------------------------------------------------------------
Key: ISPN-2041
URL:
https://issues.jboss.org/browse/ISPN-2041
Project: Infinispan
Issue Type: Enhancement
Components: Core
Affects Versions: 5.1.4.FINAL
Reporter: susanin
Assignee: William Burns
Priority: Minor
Fix For: 8.0.0.Final
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.