As a cursor replacement, getAll()/getAllKeys() has the issue that you need to pick - you can't get both the key and the value. For object stores this isn't so bad if inline keys are used, but still awkward. For indexes you can't even get the primary key.
Here's an example where getAll() could help but needs index key and primary key
https://stackoverflow.com/questions/44349168/speeding-up-indexeddb-search-with-multiple-workers
As a cursor replacement,
getAll()/getAllKeys()has the issue that you need to pick - you can't get both the key and the value. For object stores this isn't so bad if inline keys are used, but still awkward. For indexes you can't even get the primary key.Here's an example where
getAll()could help but needs index key and primary keyhttps://stackoverflow.com/questions/44349168/speeding-up-indexeddb-search-with-multiple-workers