3 ms·
IndexedDB: Indexing Problems
- jorangreef 16y agoIndexedDB provides inadequate indexing and querying features: 1. It cannot index JSON objects with array values or support compound indexes. 2. There is no way to intersect or union indexes when querying. 3. There is no way for an application to pass in indexes to be modified when putting an object. 4. Indexes must be created or deleted in a special setVersion transaction. IndexedDB takes on too much responsibility for trying to keep up with application state (when this is not needed, see point 3) and not enough responsibility for data storage, indexing, and querying (which is needed).