Skip to content

Conversation

simolus3
Copy link
Contributor

@simolus3 simolus3 commented Feb 17, 2025

Support bucket priorities by recognizing partial checkpoint complete messages and forwarding their status to the core extension: When receiving a checkpoint message, we remember the priorities of involved buckets. For a partial_checkpoint_complete message, we then validate and sync only the buckets with matching priorities.

We also expose the sync state within each priority through the SyncStatus objects and expand waitForFirstSync to optionally wait only for a first sync within a priority.

@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2025

🦋 Changeset detected

Latest commit: e04c040

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@powersync/common Minor
@powersync/op-sqlite Patch
@powersync/react-native Patch
@powersync/tanstack-react-query Patch
@powersync/web Patch
@powersync/diagnostics-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@simolus3 simolus3 marked this pull request as ready for review February 19, 2025 12:02
Copy link
Collaborator

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor comments. I didn't review the specifics of the new sync protocol.

Copy link
Collaborator

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm happy with the changes here :)

@simolus3 simolus3 merged commit 6780fe2 into main Feb 25, 2025
6 checks passed
@simolus3 simolus3 deleted the feat/bucket-priorities branch February 25, 2025 13:12
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