·
Lavalite pagination is quite an easy thing to use, but to determine the number of pages it makes an additional query to the database, which may be a problem for a huger amount of data. And you can actually avoid it
Let’s take a simple pagination example from a table
As you can see, there’s a query for the actual page, and then counting the number of entries/pages.