dotnet / dotnet/efcore

Query/Json: implement optimized materializer for JSON queries with parameterless ctor

Open
#31,166 0 comments 0 reactions 0 assignees View on GitHub
area-json area-perf area-query
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

When JSON entity takes arguments in the ctor we need to do special processing - read all the JSON values into variables and only when we are done reading instantiate the entity and then do fixup. This is the scenario we currently have implemented since it's the most general-purpose. However, when entity doesn't have any ctor arguments we can instantiate it right away and do property/navigation hook-ups in place, saving some allocations.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.