2 ms·
You sort by your fields and then by id. You also include those field values along with id into your “cursor”. This is complicated for general case but possible
by vbezhenar 6y ago
You sort by your fields and then by id. You also include those field values along with id into your “cursor”. This is complicated for general case but possible to implement.