How database queries are works? #21
Unanswered
eugene-nuwber
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi @eugene-nuwber , These queries won't be executed in parallel unless you make them run in parallel. For the usage of coroutines you can refer to coroutine in the docs. If you don't have experience in coroutines before, I strongly recommend learning about Linux operating systems, asynchronous I/O, coroutines, network communication protocols, concurrency, and other fundamental knowledge through Mastering Swoole PHP. This will help you gain a more comprehensive understanding of how Coroutines work behind the scenes when you use them in Hypervel. |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hi, I'm curious about how Eloquent handles concurrent queries in Hypervel, specifically with eager loading. The documentation shows an example with multiple relationships. If I've already fetched 25 IDs and then eager load several relationships for these models, will Hypervel execute the relationship queries concurrently (in parallel) to PostgreSQL, unlike Laravel which typically does them sequentially? I'm wondering if this would provide a performance benefit in this scenario within Hypervel?
Beta Was this translation helpful? Give feedback.
All reactions