Drop time-window filter from initial feed load to eliminate gaps#21
Merged
Drop time-window filter from initial feed load to eliminate gaps#21
Conversation
The adaptive `since` window was too aggressive — for 300-700 follows it only looked back 1 hour, causing large chronological gaps in the feed (e.g. 3rd note 1h ago, 4th note 8h ago). With outbox routing splitting queries across many relays, each relay group has few authors so `limit=25` already caps response size effectively. Remove `since` from the initial feed filter and rely solely on `limit`. Each relay now returns its N most recent matching events regardless of age, producing a dense feed with no gaps. Also removes the backfill mechanism which is no longer needed, and the now-unused `adaptiveSince` helper.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sincetime-window from initial feed filter — it was causing large chronological gaps (e.g. 3rd note 1h ago, 4th note 8h ago) because the adaptive window was too aggressive for outbox-routed querieslimit=25per relay group, which already caps response size effectivelyadaptiveSincehelper, which are no longer neededTest plan