Closed quintenbuis closed 1 year ago
This change produces awfull performance for me. Project Laravel 11 . Maria DB 11. Execution time went from under 1 second to over 30 seconds. When calling Article::with(['translation','a lot more relationships here']); . This issues is only present in Maria DB 11.x. Every older version doesnt seem to be affected. I dont know why and it already cost a lot of debugging time to find the source of the problem. Anyways have a nice one.
This PR changes the
translation()
relation to the new ofMany method and fixes #275