Open robherman opened 4 months ago
I cannot see any breaking changes in EF 8.0 that could explain this, is there something that has changed translation wise in Pomelo.MySql?
There have been many translation changes between Pomelo 7.0.x
and 8.0.x
and EF Core 7.0.x
and 8.0.x
. The issue you are experiences does not seem to be a breaking change (since it still works, just slower, if I understand you correctly). Most likely, it is a translation change in EF Core, but we can't say for sure.
@robherman If you want us to track down the changes ones responsible for your complex query in question, please post an MRE, so we can reproduce the exact query on our end.
Also, please update the OP with the exact MySQL version you are using, post the Pomelo and EF Core version that you were using before the upgrade to Pomelo 8.0.2
and the average duration of the query in ms before and after the upgrade.
Thanks!
I cannot see any breaking changes in EF 8.0 that could explain this, is there something that has changed translation wise in Pomelo.MySql?
There have been many translation changes between Pomelo
7.0.x
and8.0.x
and EF Core7.0.x
and8.0.x
. The issue you are experiences does not seem to be a breaking change (since it still works, just slower, if I understand you correctly). Most likely, it is a translation change in EF Core, but we can't say for sure.@robherman If you want us to track down the changes ones responsible for your complex query in question, please post an MRE, so we can reproduce the exact query on our end.
Also, please update the OP with the exact MySQL version you are using, post the Pomelo and EF Core version that you were using before the upgrade to Pomelo
8.0.2
and the average duration of the query in ms before and after the upgrade.Thanks!
@robherman Any update on this?
The issue
The problem i am facing since .NET 8.0 and Pomelo 8.0 is that the same LINQ query outputs different SQL. The latest SQL output is a query that's much worse in terms of performance than the original one. I cannot see any breaking changes in EF 8.0 that could explain this, is there something that has changed translation wise in Pomelo.MySql?
LINQ:
Output before .NET 8 Pomelo 8:
Output after .NET 8
Further technical details
MySQL version: 8 Operating system: Ubuntu 22.04 Pomelo.EntityFrameworkCore.MySql version: 8.0.2 Microsoft.AspNetCore.App version: 8.0.2