2 ms·
And where this really gets tricky is when it's not a loop like that, but the next fetch happens only after user interaction, perhaps 5 hours later. To do that
by yencabulator 5y ago
And where this really gets tricky is when it's not a loop like that, but the next fetch happens only after user interaction, perhaps 5 hours later.
To do that right, you need to encode everything the query is ordered by into a stateless continuation token, for example here that might be [user_name, group_id, member_id].
You can make that opaque to the client, but that's what you need to continue the search efficiently.
Relay tries to do something like that, but it gets ridiculously complicated: https://relay.dev/docs/v12.0.0/guided-tour/list-data/advanced-pagination/ https://relay.dev/docs/v12.0.0/guided-tour/list-data/advance...