-
Hi all
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, One optimization you may do is combining the removing and adding in one store. |
Beta Was this translation helpful? Give feedback.
Hi,
If you don’t need to maximize performance id suggest using a map if the api better fits your needs.
If performance matters using a simple list writes less data on a store. Here is why:
If you store a list, a long value for each entry in the list (the entries internal ObjectID) and all entries that are not jet persisted are written. In case of a map the keys need to be stored too in the same manner as the values.
In case of 300 entries this would be 2400 bytes + newObjects for a list and 4800 bytes + new Objects in case of a map.
One optimization you may do is combining the removing and adding in one store.