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

IndexedDB flushing #208

Merged
merged 6 commits into from
Nov 6, 2024
Merged

IndexedDB flushing #208

merged 6 commits into from
Nov 6, 2024

Conversation

rkistner
Copy link
Contributor

@rkistner rkistner commented Nov 5, 2024

An update in sqlite_async will automatically flush each write. This gives some durability guarantees, but significantly slows down initial sync of 100k rows.

This change configures bucket storage to selectively disable flushing in cases where durability is not important. This only has an effect for Flutter Web, and only when IndexedDB storage is used.

Despite this change, OPFS storage is still much better. This just makes IndexedDB storage a little less bad.

stevensJourney
stevensJourney previously approved these changes Nov 5, 2024
@rkistner rkistner marked this pull request as ready for review November 6, 2024 08:21
@rkistner rkistner merged commit 55b58d6 into main Nov 6, 2024
7 checks passed
@rkistner rkistner deleted the indexeddb-flushing branch November 6, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants