I dont know if this is a duplicate but here's my question..
I was trying to implement a pagination of data taken from database
My dilemma is:
Should i go about pagination, querying data in groups, ie. 5 (doing a Select with limits/ range), then displaying them in a table with pagination. It will have page numbers so it would require counting all the table entries thus that would be 2 database queries for the initial display.or
query all the row entries and then count the result set and apply pagination. This would remove the query count on the database but would also mean that i would download the whole data everytime a single view on any page is made (but i could also apply caching)
and other suggestions are highly accepted and thank you in advance