dotnet / dotnet/efcore

Optimize JsonScalarExpression within OpenJson/json_each

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

Description

See https://github.com/dotnet/efcore/issues/30724#issuecomment-1521528054

Optimize JsonScalarExpression within OpenJson/json_each, so that instead of:

```sql
OPENJSON(JSON_VALUE([t].[Owned], '$.Strings'))
```

We get:

```sql
OPENJSON([t].[Owned], '$.Strings')
```

(see test Column_collection_inside_json_owned_entity)

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.