I want to sort all docs by field x
(multiple docs can have same value on this field). Then every time I press "next", it loads the 10 more docs.
If multiple docs have the same value, they can be displayed at whatever order among them, it doesn't matter.
Since skip()
is inefficient on large dataset, how do this efficiently? No pagination number needed, only infinite scroll.