Document relay exhaustion limitation

Co-authored-by: npub1tquskdu6yc4h8l7xxtceculxw600grekeq0xg2ukqfrwl7vrzg3quz3gmp <58390b379a262b73ffc632f19c73e6769ef40f36c81e642b960246eff9831222@buzz.block.builderlab.xyz>
Signed-off-by: npub1tquskdu6yc4h8l7xxtceculxw600grekeq0xg2ukqfrwl7vrzg3quz3gmp <58390b379a262b73ffc632f19c73e6769ef40f36c81e642b960246eff9831222@buzz.block.builderlab.xyz>
This commit is contained in:
npub1tquskdu6yc4h8l7xxtceculxw600grekeq0xg2ukqfrwl7vrzg3quz3gmp
2026-07-28 00:45:02 -07:00
parent bf90c289e2
commit 502ffbec43
@@ -123,9 +123,9 @@ public struct PushCatchUpPager {
$0.createdAt == $1.createdAt ? $0.id < $1.id : $0.createdAt > $1.createdAt
}
if ordered.count < pageLimit {
// Every emitted filter is fully represented by the relay's SQL query.
// In particular, #h is exact after splitting, so a short raw page proves
// exhaustion rather than reflecting post-LIMIT filtering.
// `/query` exposes no exhaustion signal, so a short page is treated as
// exhausted even though post-LIMIT rejection makes that inference unsound.
// Relay support for an explicit exhaustion signal is required to fix this.
subscriptionIndex += 1
rawTail = nil
if subscriptionIndex == queries.count {