Skip to content

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

@simolus3
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 simolus3 requested a review from rkistner April 21, 2026 08:08
@simolus3 simolus3 merged commit 2ea7aa3 into main Apr 21, 2026
4 checks passed
@simolus3 simolus3 deleted the fix-premature-update-hooks branch April 21, 2026 08:11
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