-
Notifications
You must be signed in to change notification settings - Fork 0
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
IndexedDB write performance #64
Comments
This seems to be an issue of limited IndexedDB write speed or more specifically, how fast IDB resolves its promises. See idb-test repo. Screen.Recording.2021-10-06.at.03.17.26.mov |
Confirmed that waiting for the displayed IndexedDB storage size to come to rest (takes several minutes for ~8.5 MB) does result in all episodes being persisted in the database. |
next steps:
|
Using parallel single item transactions in IndexedDB directly for a test set of 1000 records results in virtually the same delays to the The timings are consistent with IndexedDB locking the database to perform a single |
The same test takes 305 ms in Firefox and 584 ms in Safari. |
This might be due to Chrome's strict durability guarantees. There is a relaxed durability API available in Chrome. |
Performing the same test in Chrome with the transaction option |
relevant blog post: Speeding up IndexedDB reads and writes |
f1348e0 resolves the issue. Tuning of batch window is TBD |
No description provided.
The text was updated successfully, but these errors were encountered: