Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usability issues with IndexedDB #95

Open
scottohara opened this issue Jan 26, 2020 · 0 comments
Open

Usability issues with IndexedDB #95

scottohara opened this issue Jan 26, 2020 · 0 comments
Labels

Comments

@scottohara
Copy link
Owner

No easy way to get all index keys

getAllKeys() only returns the store keys (primary keys)
openKeyCursor() iteration is too slow on large sets

JOINS

Arbitrary ORDER BY

Partial key searches

Given: store.createIndex(["a", "b"])

The only way to find all records where a = "foo" (regardless of b) is:

IDBKeyRange.bound(["foo"], ["foo", "~"]);

(where "~" is the highest ascii character).

It would be preferable to be able to use something like IDBKeyRange.only("foo") instead.

No support for OR key searches

i.e. key = A or key = B

Proposed solution seems to be IDBKeyList

Indexing into nested arrays

Index keys can’t be boolean

e.g. active: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant