Add concurrent for with method #55589
Unanswered
sinhnv1991
asked this question in
Ideas
Replies: 1 comment 5 replies
-
@sinhnv1991 We tried with curl_multi_init and we had to do them in 2 chunks when the relations number is over 12 for example because the time lost with additional things was greater than the time spared by the sqls running in parallel async. Also the cpu and memory spikes were an issue. The tricky part was getting the sql because it was not the same as the toSql() returned. But anyway, it could be implemented also via concurrency but it would need testing with big volumes of data. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
can Laravel help add support withConcurrent method or other if use laravel octance get data of relations, example: Book::withConcurrent(['categories', 'author'])->get();?
Beta Was this translation helpful? Give feedback.
All reactions