Skip to content

Slow controller performance with more than 5000 rows of data #2966

Discussion options

You must be logged in to vote

Use query instead of collection:

User::with('roles')->select('users.*')

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@edpmasterindo
Comment options

@yajra
Comment options

Answer selected by edpmasterindo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants