Skip to content

Update of 5.6 to 5.7.1 causes lots of Timeout in include queries #1731

Open
@JohnStrim

Description

@JohnStrim

SUMMARY

Update to this version has produced many Timeouts in EF Core

DETAILS

In our logic we are extensively using query strings for filtering, including relationships and paging which in previous versions used to perform very well (Generally under 1 sec).
When updating to version 5.7.1 we started having a lot of Timeout in Db Queries. To provide more context we were trying to include relationships that are 2 or 3 level deep from our original resource: (ex. include=products.unitGroup,products.unitGroup.units)
Also we noticed a big delay even in simple GET queries which used to return result under 200ms and now performance has up to 600ms with no appart explanation.
We've tried to do an EF Performance Update: (Include the UseQuerySplittingBehavior(QuerySplittingBehavior.SplitQuery)) but this seems to causes many Data is Null Exceptions when including relationships.
Is there any suggestions as far as configuration or minimum versions that we should be aware of to avoid this overhead?

VERSIONS USED

  • JsonApiDotNetCore version: 5.7.1
  • ASP.NET Core version: 8.0
  • Entity Framework Core version: 8.0.1, 9.0.5 (Tried Both)
  • Database provider: SQL Server

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions