Replies: 2 comments 1 reply
-
Nevermind I found the issue |
Beta Was this translation helpful? Give feedback.
1 reply
-
There was a custom resolver implement for one of the fields. In this resolve we where calling findOrFail on an eloquent. This caused the massive amounts of queries. I refactored it and it's blazing fast now |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am having trouble with query performance. Using telescope I saw that there are 3505 queries, 3478 of which are duplicated.
This is for one request using the pagination. I followed the doc to the dime, and everything is seemingly configured correctly.
This is my resolve
The performance is abysmal. Even when I query with a limit of 1, I get 98 queries, 80 of which are duplicated. How can I debug this? I guess the eager loading is not working, as I see that the queries always select for a single id, never multiple. However the selectFields are propagated properly.
Beta Was this translation helpful? Give feedback.
All reactions