StoreSparseIndex

Configs

1
useSparseIndex: Boolean= false

Enable sparse index handling. When enabled, the store's model will be augmented with a sparseIndex field (unless it already exists) which will be automatically managed by the store. When adding or inserting records into the store, sparse indexes will be generated for those records. When moving records, their sparse index will be updated with a fractional number. They will be used to sort records when no other sorter is defined on the store.

Sparse indexes are a tree-defining property. They will also be used to determine the order of records when persisting the store's data. When using sparse indexes in a tree store, the store's parentId will also be made persistent to allow reconstruction of the tree structure when loading data.

When using sparse indexes, the other tree-defining properties parentIndex and orderedParentIndex will no longer be persistent. Their values will still be updated when items are added, removed, or re-ordered, but they won't be marked as dirty and won't be included when persisting the store's data. If it is necessary to persist these fields, use hierarchyModificationDataToWrite.

Properties

2
isStoreSparseIndex: Boolean= truereadonly
Identifies an object as an instance of StoreSparseIndex class, or subclass thereof.
isStoreSparseIndex: Boolean= truereadonlystatic
Identifies an object as an instance of StoreSparseIndex class, or subclass thereof.