Skip to content

Warnings about missing query splitting #28

@stefanolsen

Description

@stefanolsen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions