Skip to content

Speed up incremental syncs#57

Merged
ChrisPenner merged 2 commits into
mainfrom
cp/sync-speedups
Apr 15, 2025
Merged

Speed up incremental syncs#57
ChrisPenner merged 2 commits into
mainfrom
cp/sync-speedups

Conversation

@ChrisPenner
Copy link
Copy Markdown
Member

@ChrisPenner ChrisPenner commented Apr 15, 2025

Overview

Previously we'd fully expand the FULL history of all the known causals we're given, but that's excessive and also means incremental syncs slow down as history grows, which isn't what you want.

This PR changes things to instead crawl a single history node of all known hashes and just exclude those terms, which is perfectly good in most cases and starts sending results faster.

Also fixes a bug where not all excluded causals would be skipped, resulting in extra work being done.

Test coverage

Tested on staging

@ChrisPenner ChrisPenner marked this pull request as ready for review April 15, 2025 22:54
@ChrisPenner ChrisPenner merged commit febc0b5 into main Apr 15, 2025
6 checks passed
@ChrisPenner ChrisPenner deleted the cp/sync-speedups branch April 15, 2025 22:56
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