Skip to content

Commit

Permalink
Fix warning note
Browse files Browse the repository at this point in the history
  • Loading branch information
roji committed Sep 5, 2020
1 parent aa4fe8f commit 44d0430
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entity-framework/core/querying/related-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ LEFT JOIN [Post] AS [p] ON [b].[BlogId] = [p].[BlogId]
ORDER BY [b].[BlogId], [p].[PostId]
```

If a typical blog has multiple related posts, rows for these posts will duplicate the blog's information, leading to the so-called "cartesian explosion" problem. As more one-to-many relationships are loaded, the amount of duplicated data may grow and adversely affect the performance of your application. EF Core emits a warning if it detects queries loading collection includes that may cause performance issues.
If a typical blog has multiple related posts, rows for these posts will duplicate the blog's information, leading to the so-called "cartesian explosion" problem. As more one-to-many relationships are loaded, the amount of duplicated data may grow and adversely affect the performance of your application. By default, EF Core emits a warning if it detects queries loading collection includes that may cause performance issues.

#### Split queries

Expand Down Expand Up @@ -99,7 +99,7 @@ When split queries are configured as the default, it is still possible to config

[!code-csharp[Main](../../../samples/core/Querying/RelatedData/Sample.cs?name=AsSplitQuery&highlight=5)]

By default, EF Core emits a warning if it detects single queries loading collection includes that may cause a performance issue. If you're confident that there are no related performance issue, you can explicitly configure the splitting behavior to SplitQuery to prevent these warnings from being generated.
By default, EF Core emits a warning if it detects single queries loading collection includes that may cause a performance issue. If you're confident that there are no related performance issues, you can explicitly configure the splitting behavior to SingleQuery to prevent these warnings from being generated.

#### Characteristics of split queries

Expand Down

0 comments on commit 44d0430

Please sign in to comment.