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
The pattern of wrapping and unwrapping is just too leaky. Way too many expressions I encountered where it leaves behind internal states causing translation failures.
Either merge into nav rewrite since it has entity info or convert to a proper reducingEV pattern.
I think there's value in leaving this as a separate visitor, just to keep nav rewrite from becoming a super huge single visitor that does everything... (that doesn't mean there isn't room for cleanup/improvement in EE, possibly even a rewrite). Just something to consider.
Historically, we did order by entity to order by entity PK in translation phase. It is in EE right now, which can be moved again. The reason for EE happening before nav expansion was 2 fold
entity.Principal == null can be replaced with entity.ForeignKey == null saving additional join. We currently don't do this as it had issues with query filter where we would give wrong results.
et1.Owned == et2.owned should become et1 == et2, (same for collections), they would match only if principal is same entity instance. We do it for collection at present but not for owned entities.
In entity equality rewrite issue, we had various opinions about merging EE into navigation expansion. One more issue was about EE on a subquery with composite PK which has a contains based different translation.
Overall design I am proposing is
Nav expansion which already deals with navigations does task of pruning navigations which does not need to be expanded
entity equality goes away from preprocessing.
Translation pipeline based on whatever mapping converts entity equality best it can do on server side.
Activity
maumar commentedon Mar 4, 2020
+1 for merge with nav rewrite
roji commentedon Mar 4, 2020
I think there's value in leaving this as a separate visitor, just to keep nav rewrite from becoming a super huge single visitor that does everything... (that doesn't mean there isn't room for cleanup/improvement in EE, possibly even a rewrite). Just something to consider.
AndriySvyryd commentedon Mar 5, 2020
We can keep the visitors separate in source code and combine them using a composite visitor.
Query: Add ability for translation pipeline to translate property acc…
Query: Add ability for translation pipeline to translate property acc…
Query: Add ability for translation pipeline to translate property acc…
Query: Add ability for translation pipeline to translate property acc…
Query: Add ability for translation pipeline to translate property acc…
Query: Add ability for translation pipeline to translate property acc…
4 remaining items
Query: Rewrite Entity Equality during translation phase
smitpatel commentedon Mar 28, 2020
Historically, we did order by entity to order by entity PK in translation phase. It is in EE right now, which can be moved again. The reason for EE happening before nav expansion was 2 fold
In entity equality rewrite issue, we had various opinions about merging EE into navigation expansion. One more issue was about EE on a subquery with composite PK which has a contains based different translation.
Overall design I am proposing is
Query: Rewrite Entity Equality during translation phase
Query: Rewrite Entity Equality during translation phase