High query count #161
Closed
TheTomRoelofs
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I enjoy using verbs and I see a lot of potential in the package. However I struggle with a bit some results I'm getting. When firing a relatively simple event, Verbs fires almost 60 DB queries. When doing a similar thing using eloquent I can do it under 10 queries. I'm trying to structure my application in a similar way as the examples in the docs.
When inspecting the executed queries it's hard for me to figure out where and why they are executed.
In the docs I see the following statement:
"States allow you to complete your complex calculations and business logic away from you models, radically reducing database query overhead." But this is not really working out for me at the moment.
To make reading data more efficient I create models in the handle() method so I can return those in my controllers. But I basically end up with the models I would have created anyway and the creation is now just a lot slower.
Would there be any information available about when certain queries are executed and maybe some best practices for when a state has multiple "related states"?
Beta Was this translation helpful? Give feedback.
All reactions