Runs a query across all shards and returns a single page plus the total
match count.
allAllShardsGlobal already merges, filters, sorts, and slices across shards
but discards the pre-slice count. paginate keeps that count so list
endpoints can return { results, total, page, limit, pages } for a UI in one
call instead of issuing a second COUNT query.
With consistency set, each shard runs its query in one session. The
sessions are separate: the page is not a snapshot across shards, and two
calls for two pages are not one snapshot either.
Runs a query across all shards and returns a single page plus the total match count.
allAllShardsGlobalalready merges, filters, sorts, and slices across shards but discards the pre-slice count.paginatekeeps that count so list endpoints can return{ results, total, page, limit, pages }for a UI in one call instead of issuing a second COUNT query.With
consistencyset, each shard runs its query in one session. The sessions are separate: the page is not a snapshot across shards, and two calls for two pages are not one snapshot either.