Skip to content

Avoid passing partial arguments as string to sync_local - #219

Open
simolus3 wants to merge 2 commits into
mainfrom
sync-local-refactor
Open

Avoid passing partial arguments as string to sync_local#219
simolus3 wants to merge 2 commits into
mainfrom
sync-local-refactor

Conversation

@simolus3

@simolus3 simolus3 commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

When sync_local is called for partial checkpoints, we currently pass a JSON array of bucket names around in Rust. This PR simplifies that by passing the actual bucket names around as a vector of string references, and only serializes to JSON in the single place where we bind them to a SQL query.

I have also experimented with an approach splitting the statements (first finding updated rows, then looking up the latest oplog entry in a separate prepared statement) which avoids the serialization entirely, but causes many more reads in the sync local performance test.

AI use: Reviewed with Claude Code.

@simolus3
simolus3 requested a review from rkistner September 2, 2026 13:05
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.

1 participant