The pagination for elements in Mongo might be slow when using skip().
An interesting way of solving this problem is referenced here.
Perhaps letting the user sending the last element's id from the page rather than the page number (in order to get the next one) would help in speeding up the results.
The pagination for elements in Mongo might be slow when using
skip().An interesting way of solving this problem is referenced here.
Perhaps letting the user sending the last element's id from the page rather than the page number (in order to get the next one) would help in speeding up the results.