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

Warnings about missing query splitting #28

Open
stefanolsen opened this issue Apr 13, 2023 · 0 comments
Open

Warnings about missing query splitting #28

stefanolsen opened this issue Apr 13, 2023 · 0 comments

Comments

@stefanolsen
Copy link

On a site running this package, I see a lot of logged warnings like the following.

Compiling a query which loads related collections for more than one collection navigation, either via 'Include' or through projection, but no 'QuerySplittingBehavior' has been configured. By default, Entity Framework will use 'QuerySplittingBehavior.SingleQuery', which can potentially result in slow query performance. See https://go.microsoft.com/fwlink/?linkid=2134277 for more information. To identify the query that's triggering this warning call 'ConfigureWarnings(w => w.Throw(RelationalEventId.MultipleCollectionIncludeWarning))'.

Seems like there is a performance gain to be won, if joins are replaced with query splitting.

Package versions:

  • Episerver.Marketing.KPI.Commerce: 3.1.1
  • Episerver.Marketing.Testing: 3.1.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant