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

Null value handling in indexeddb #357

Open
chancehudson opened this issue Jan 12, 2022 · 0 comments
Open

Null value handling in indexeddb #357

chancehudson opened this issue Jan 12, 2022 · 0 comments
Labels
package:database Data storage package, SQLite/IndexedDB/Postgres/Memory

Comments

@chancehudson
Copy link
Member

IndexedDB doesn't support null values in indexes. This problem is similar to #348.

To solve this problem nullish values should be avoided and instead empty strings or 0 values should be used as needed. Another approach is to add values indicating can more readily be queried.

This approach can be seen in the index-null-perf branch.

The main downside to this is new versions need to perform updates to existing databases converting null values to their corresponding values.

@chancehudson chancehudson added the package:database Data storage package, SQLite/IndexedDB/Postgres/Memory label Jan 12, 2022
@chancehudson chancehudson mentioned this issue Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:database Data storage package, SQLite/IndexedDB/Postgres/Memory
Projects
None yet
Development

No branches or pull requests

1 participant