CDV ❯ getLocalKeys() operations on clustered stores are copies
-
Bug
-
Status: Closed
-
2 Major
-
Resolution: Fixed
-
-
-
jhouse
-
Reporter: teck
-
May 17, 2011
-
0
-
Watchers: 0
-
July 27, 2012
-
July 11, 2011
Description
Terracotta.getLocalKeys() is used for the localReads behavior for calls like Cache.getKeys(). Even though it is local it still might be very large I think and probably shouldn’t make a copy on each call.
Where this copy happens:
org.terracotta.modules.ehcache.store.backend.BulkLoadBackend.getLocalKeys() com.terracotta.toolkit.collections.ConcurrentDistributedMapDsoArray.localKeySet()