question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The query processor ran out of internal resources

See original GitHub issue

Ask a question

Users can filter on a number of criteria in an app. I’m seeing the following error when running a query that has a lot of filters. This mostly translates to an Exists statement for most filter criteria, which are spread across multiple tables.

The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected for extremely complex queries or queries that reference a very large number of tables or partitions. Please simplify the query. If you believe you have received this message in error, contact Customer Support Services for more information.

When I take the SQL from the Application Output and reassemble with the query parameters, it runs just fine.

Why would it be different for EF Core and is it something I can mitigate?

Include provider and version information

EF Core version: 5.0.9 Database provider: Microsoft.EntityFrameworkCore.SqlServer Target framework: .NET 5.0 Operating system: macOS 11.5.2 IDE: Visual Studio 2022 for Mac build 2706

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ajcvickerscommented, Sep 7, 2021

Likely duplicate of #13617.

0reactions
mrlifecommented, Sep 14, 2021

@ajcvickers I can do that but would need to change names and values - would that pose any issue on your end?

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL Server error query processor ran out of internal ...
The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected...
Read more >
SQL server query processor ran out of internal resources
The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected...
Read more >
MSSQLSERVER_8623 - SQL Server
The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected...
Read more >
SQL Error 8623: What To Do To Handle It And Get Going Again
The query processor ran out of internal resources and could not produce a query plan. This is a rare event and only expected...
Read more >
Error Message : The query processor ran out of internal ...
Error Message: The query processor ran out of internal resources and could not produce a query plan. This is a rare event and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found