Reputation: 889
As I noticed in SQL query logger Knp paginator at first counts all records available and then in second query retrieves records that are needed in requested page. I wonder if there is some way to update first query to retrieve additional counts/sums as I would like to get total count/sum in all records available?
Upvotes: 4
Views: 5327
Reputation: 163
{{ pagination.getTotalItemCount }}
use getTotalItemCount method to access the total count
Upvotes: 1