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
When writing a simple groupBy the query that gets translated adds extra join of the same table when aggregating on navigation property that is also used in the Key.
This does not make sense and causes a lot of performance issues.
SELECT [l].[Id] AS [LocationId], COUNT(CASE WHEN [l0].[Id] =1 THEN 1 END) AS [Cnt]
FROM [bdk].[SchoolLoginLocations] AS [s]
**INNER JOIN [bdk].[LoginLocations] AS [l] ON [s].[LoginLocationId] = [l].[Id]
INNER JOIN [bdk].[LoginLocations] AS [l0] ON [s].[LoginLocationId] = [l0].[Id]**GROUP BY [l].[Id]
The text was updated successfully, but these errors were encountered:
Hi,
When writing a simple groupBy the query that gets translated adds extra join of the same table when aggregating on navigation property that is also used in the Key.
This does not make sense and causes a lot of performance issues.
C#:
SQL Translation:
The text was updated successfully, but these errors were encountered: