Using sparse indexes
As described in the Grid guide, Store can use sparse indexes. This means that the store will not update a continuous index of all records, but instead will only modify the sparseIndex property of records that have been moved in the UI.
When a Store is to be used directly, just configure it with useSparseIndex : true to enable this feature:
const store = new Store({
useSparseIndex : true
});
In a Scheduler application, the stores are often added to a CrudManager, and by default not configured to use sparseIndex. To enable this feature, the useSparseIndex config must be set to true on the store instance. In many cases, this will be the resourceStore of the project:
const crudManager = new CrudManager({
resourceStore : {
useSparseIndex : true
}
});
Utilizing this feature is only meaningful in conjunction with persistent storage, as the sparse index values must be saved and restored when loading data.
See also the Crud Manager guide.
How it works
See more detailed information in the Grid guide: Using sparse indexes.