KEMBAR78
`getAll()` with both key and value (or index key and primary key) · Issue #206 · w3c/IndexedDB · GitHub
Skip to content

getAll() with both key and value (or index key and primary key) #206

@inexorabletash

Description

@inexorabletash

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions