proof of concept for polymorphic query#977
Conversation
|
I'm noticing at a glance here that all of the IMO, this needs to be done without such a regression in play, and I'm not sure how to do that barring (in the provider or on-our-side) intermediate collections for rows for a very minority use case. Otherwise it's a performance burden on everyone for the benefit of very few...that's a hard API tradeoff to make. |
|
yeah, I figured they were there for performance reasons. Agree that you don't wan't to take that hit for all. I can see a few ways to avoid it:
If your open to the concept of 2, then I can update this proof of concept with that. |
Furthering the discussion from #976, here's a proof of concept of the changes. There are simple tests for proving it works and supports horizontal partitioning.
In theory, the only public API change could be the SqlMapper.RegisterPolymorphicLoader method.