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

Encourage use of useBuffer: true for improved IndexedDB write performance #916

Merged
merged 1 commit into from Jan 21, 2022

Conversation

dgeb
Copy link
Member

@dgeb dgeb commented Jan 21, 2022

Adds the following warning in debug mode:

IndexedDBCache will perform much better when it buffers bulk writes to IndexedDB. To enable buffered writes, configure IndexedDBSource or IndexedDBCache with { defaultTransformOptions: { useBuffer: true } }. The only known transforms which are not fully handled by buffered writes are cascading (> 1 level of) dependent deletes. (To hide this warning set Orbit.debug = false or set the useBuffer default explicitly to true or false.)

Closes #798

… write performance

Adds the following warning in debug mode:

IndexedDBCache will perform much better when it buffers bulk writes to IndexedDB. To enable buffered writes, configure IndexedDBSource or IndexedDBCache with `{ defaultTransformOptions: { useBuffer: true } }`. The only known transforms which are not fully handled by buffered writes are cascading (> 1 level of) dependent deletes. (To hide this warning set `Orbit.debug = false` or set the `useBuffer` default explicitly to `true` or `false`.)
@dgeb dgeb merged commit 38f8c9b into main Jan 21, 2022
@dgeb dgeb deleted the use-buffer-warning branch January 21, 2022 20:57
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.

Performance indexeddb
1 participant