Skip to content

fix: batch consecutive statements in runBatched#145

Merged
simolus3 merged 1 commit into
powersync-ja:mainfrom
shenlong-tanwen:fix/drift-batched-statements
Jun 4, 2026
Merged

fix: batch consecutive statements in runBatched#145
simolus3 merged 1 commit into
powersync-ja:mainfrom
shenlong-tanwen:fix/drift-batched-statements

Conversation

@shenlong-tanwen
Copy link
Copy Markdown
Contributor

Previously runBatched issued one tx.execute per argument set, resulting in a sequential write for every row in a Drift batch. Instead, batch runs of consecutive arguments that share a statement index into a single tx.executeBatch call, which is faster than the per-argument sequential write.

simolus3
simolus3 previously approved these changes Jun 4, 2026
Comment thread packages/drift_sqlite_async/CHANGELOG.md
@simolus3 simolus3 merged commit 1727fb8 into powersync-ja:main Jun 4, 2026
2 checks passed
@simolus3
Copy link
Copy Markdown
Contributor

simolus3 commented Jun 4, 2026

Released on pub.dev, thanks again for your contribution!

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