You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[bug] Collection pagination pushes offset to SQL before the in-memory membership filter → wrong/truncated results #1430
For a collection_id-filtered query (ops/node_ops.rs:419-429,479-487), membership filtering happens in memory after the SQL query, but offset is pushed to the SQL layer where it skips rows of the unfiltered set → offset>0 over a collection returns wrong/missing members + unstable pagination. Separately, with limit=None the over-fetch is hardcoded to 1000 (line 421) → members outside the 1000 newest nodes are silently dropped.
Fix: drive collection-scoped queries from get_collection_members and apply offset/limit in memory; don't push offset to SQL.
Found via the 2026-06-18 multi-repo bug-hunt sweep. Confidence/severity from the sweep + spot-verification.
Resolved in #1459. Collection-filtered queries are now scoped to the collection's members via NodeFilter::with_ids (bounded) with offset/limit applied IN MEMORY after the membership filter — no more pushing offset to SQL (which paged the unfiltered set) or the fixed 1000 over-fetch (which dropped members beyond the newest 1000). Empty collections short-circuit. Test: pagination over members vs global set.
Activity
mstomar125 commentedon Jun 24, 2026
Resolved in #1459. Collection-filtered queries are now scoped to the collection's members via
NodeFilter::with_ids(bounded) with offset/limit applied IN MEMORY after the membership filter — no more pushing offset to SQL (which paged the unfiltered set) or the fixed 1000 over-fetch (which dropped members beyond the newest 1000). Empty collections short-circuit. Test: pagination over members vs global set.