Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling split queries globally. #6228

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Enabling split queries globally. #6228

merged 1 commit into from
Nov 19, 2020

Conversation

maliming
Copy link
Member

@maliming maliming commented Nov 17, 2020

EF Core uses single query mode by default in the absence of any configuration. Since it may cause performance issues, EF Core generates a warning whenever following conditions are met:

  • EF Core detects that the query loads multiple collections.
  • User hasn't configured query splitting mode globally.
  • User hasn't used AsSingleQuery/AsSplitQuery operator on the query.

To turn off the warning, configure query splitting mode globally or at the query level to an appropriate value.

https://docs.microsoft.com/en-us/ef/core/querying/single-split-queries#enabling-split-queries-globally

@maliming maliming added this to the 4.0-final milestone Nov 17, 2020
@hikalkan hikalkan merged commit 8d57ff7 into rel-4.0 Nov 19, 2020
@hikalkan hikalkan deleted the maliming/AsSplitQuery branch November 19, 2020 13:16
@hikalkan
Copy link
Member

We should write this to the EF Core integration document, so people will know it. Can you write please?

@maliming
Copy link
Member Author

acee880

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants