You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
roji
changed the title
Left join on included entities are duplilicated if accessing getter property
Left join on included entities are duplicated if accessing getter property
Feb 21, 2023
because of computed columns (client eval) we process each column projection as separate subquery with include, which then get converted into those superfluous joins during ApplyProjection phase.
Description
Originally reported to the Postgres provider repo here: npgsql/efcore.pg#2655
When doing an:
The
left join
to get the include gets duplicated byN + 1
amount of times,where
N
is the amount of computed propertiesIssue
produces
Repo
Contains a readme with more info, and a very simple Program.cs file that shows the core issue.
https://github.com/PolarizedIons/PgEfCore.Bug.DuplicateSubqueries
Provider and version information
EF Core version:
Database provider: Npgsql.EntityFrameworkCore.PostgreSQL
Target framework: .NET 6.0
Operating system: NixOS
IDE: Rider 2022.3.2
The text was updated successfully, but these errors were encountered: