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

Improve bulk IndexedDB performance #821

Merged
merged 1 commit into from Mar 2, 2021
Merged

Improve bulk IndexedDB performance #821

merged 1 commit into from Mar 2, 2021

Conversation

dgeb
Copy link
Member

@dgeb dgeb commented Mar 2, 2021

Perform multiple IDB operations (get/put/delete) simultaneously rather than serially for bulk operations. Only the last request needs an onsuccess handler. This approach is not only more performant but much more robust when applying very large (> 5000 record) updates.


This approach results in modest performance gains for IndexedDB. In addition, I'm working on providing much more significant gains via a transform buffer that allows for complex updates that involve many record types and relationships to be truly batched and performed in a single IDB transaction.

Perform multiple IDB operations (get/put/delete) simultaneously rather than serially for bulk operations.

Only the last request needs an `onsuccess` handler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant