Slow controller performance with more than 5000 rows of data #2966
Answered
by
yajra
edpmasterindo
asked this question in
Performance
-
Hello... i got very slow performance when loading more than 5000 rows of data, but paginated only show 10 rows per page. Here is my controller:
I check with clockwork the database is run normally with only running 5 queries, but the controller part is so slow... |
Beta Was this translation helpful? Give feedback.
Answered by
yajra
Mar 13, 2023
Replies: 1 comment 2 replies
-
Use query instead of collection: User::with('roles')->select('users.*') |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
edpmasterindo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use query instead of collection:
User::with('roles')->select('users.*')