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
You really should not be loading 5000 rows into memory like that. It is much better to use chunking. I'm not sure how much faster Orator was from Masonite ORM but the slowness comes from hydrating 5000 models in memory and not the query. Not really anything we can do unless you improve your query.
Here is an example on the same query above but chunking through the results:
Describe the bug
When I query the first 5000 rows of a table, it takes about 10 seconds to respond
Expected behavior
It should be a lot faster. as it was in orator
Screenshots or code snippets
here is the query log:
Desktop:
What database are you using?
The text was updated successfully, but these errors were encountered: