Skip to content

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