You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to improve the performance in a large db and I notice that the paginate method execute a count but can't personalize the fields in that count, my idea is just pass another argument in the method to choose the fields in the count.
In the actual paginate method there is a call to getCountForPagination
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all!
I'm trying to improve the performance in a large db and I notice that the
paginate
method execute acount
but can't personalize the fields in that count, my idea is just pass another argument in the method to choose the fields in the count.In the actual
paginate
method there is a call togetCountForPagination
$results = ($total = $this->toBase()->getCountForPagination())
My idea is something like this:
https://github.com/laravel/framework/compare/8.x...dmouse:feature/select-count-fields-paginate?expand=1
Beta Was this translation helpful? Give feedback.
All reactions