I have a pagination question using mongodb and mongoengine. I have a table that will have millions of records in the future. and I do paging like this.
Well I'm not sure this is the right approach
list = Books.objects.all() paginator = DiggPaginator(list, 20, body = 10, tail = 2)
here I open the whole table, and then paginate, and again on the next page above the code, we launch and bring the 2nd or any page.
Is this the right approach or are there any better ways to do this.
source share