Hi,

Does putAll perform better than put method if the data being pushed to the
cache is going to land up on same node from where it is being pushed?

1)   try (Transaction transaction = transactions.txStart()) {
      for (Data data : datas) {
        ipv4DataCache.put(data.getKey(), data);
      }
      transaction.commit();
    }



2)  try (Transaction transaction = transactions.txStart()) {
        ipv4DataCache.putAll(map);
        transaction.commit();
    }

Does code 2 performs better than code 1?


Thanks,
Prasad

Reply via email to