Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Currently, single data structures cache is shared between several collection instances (IgniteQueue, IgniteSet).
To support iterator() and size() IgniteSet maintains plain on-heap Java sets on every node (see CacheDataStructuresManager.setDataMap). These sets duplicate backing-cache entries, both primary and backup. For big non-collocated sets it's too expensive to maintain redundant onheap data copies. The simplest way to avoid copies is to use separate cache for non-collocated IgniteSet version; hence size of set is the same as size of backing cache, and also set iterator is virtually the same as backing cache iterator.
The difference between exising set implementation and set based on separate cache should be properly documented afterwards.
Attachments
Attachments
Issue Links
- is duplicated by
-
IGNITE-7565 Remove IgniteSet from heap
- Resolved
-
IGNITE-7564 Document IgniteSet memory consumption
- Resolved
- is related to
-
IGNITE-640 Implement IgniteMultimap data structures
- Open
-
IGNITE-6474 Non-collocated IgniteSet stores duplicate values
- Open
- links to