Pagination is a good idea. However, you must remember that you need not only to work, but you must also understand the purpose.
Implement pagination. But if you implement pagination, but still select the same number of lines, your goal will be defeated. You must improve your request . You should get the exact number of rows for the exact number of records that will be displayed on one page paginated . This way, both your application server and the database server will benefit from your implementation.
source share