Skip to content

Conversation

ChrisPenner
Copy link
Member

@ChrisPenner ChrisPenner commented Feb 5, 2025

Overview

TODO: Need to ensure migration happens in create-schema

If we keep track of the last known hash of a remote branch according to the last time we synced with it, we can provide that hash to the server when running syncv2 and it knows which entities we'll need to receive by diffing the two.

Implementation notes

  • Adds a migration to add the last_known_causal_hash to the remote branch table
  • Sets the last known remote causal after each sync.
  • Load and use this to skip causal-negotiation when running a V2 pull, if it's available (otherwise use causal negotiation).

Test coverage

  • Need to test this more thoroughly

@ChrisPenner ChrisPenner force-pushed the syncv2/track-remote-head branch from c832639 to 3adfbb6 Compare February 13, 2025 17:32
@ChrisPenner ChrisPenner force-pushed the syncv2/track-remote-head branch from 3adfbb6 to 1e9cb6c Compare February 13, 2025 17:37
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