Partial migration to Infinite Query breaks pagination #304
|
I followed the "Migration from Convex" guide and setup CRPC, updated my one of my query definitions on the server and client setup. The query still uses plain Convex calls with pagination. Schema is plain Convex too (seems like I can't easily migrate it due to using |
Replies: 1 comment 6 replies
|
Fixed in PR #305: native Convex pagination no longer treats every |
Your query shape is correct: stream.filterWith runs before pagination. The extra requests are intentional once the paginator returns SplitRecommended, but this small filtered query should not recommend a split on current convex-helpers. I reproduced your pattern on convex-helpers 0.1.116 and 0.1.117: limit 2 scans only the first two matching rows, while limit 3 scans across filtered rows, emits SplitRecommended, and can cascade into extra split subscriptions. This was fixed upstream in convex-helpers 0.1.118 by making split recommendations less aggressive (get-convex/convex-helpers#962). Please upgrade to convex-helpers >= 0.1.118, preferably latest. The same five-row case returns 2 and 3…