FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix update notifications firing before completed transactions by simolus3 · Pull Request #140 · powersync-ja/sqlite_async.dart · GitHub

Fix update notifications firing before completed transactions - #140

Merged
simolus3 merged 1 commit into
mainfrom
fix-premature-update-hooks
Apr 21, 2026
Merged

Fix update notifications firing before completed transactions#140
simolus3 merged 1 commit into
mainfrom
fix-premature-update-hooks

Conversation

Copy link
Copy Markdown
Contributor

This updates to sqlite3_connection_pool version 0.2.4, which fixed powersync-ja/powersync.dart#407. A potential regression is that by default, that package only emits update notifications at the end of a writeLock section. This adds a workaround to _runOnWorker to flush updates after every statement not in a transaction. I re-ran benchmarks before and after, this doesn't seem to affect them.

simolus3 requested a review from rkistner April 21, 2026 08:08
simolus3 merged commit 2ea7aa3 into main Apr 21, 2026
4 checks passed
simolus3 deleted the fix-premature-update-hooks branch April 21, 2026 08:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Drift watch() streams miss rows from first sync after connect() on PowerSync 2.x (Rust client)

3 participants


Back | FazBrowse Home | New Git URL