The N+1 Query Problem in EF Core (And How to Spot It Before Production Does)
One query in testing, hundreds in production. Here's how to see the bug and fix it.
Jul 25, 20265 min read

Search for a command to run...
Articles tagged with #entity-framework
One query in testing, hundreds in production. Here's how to see the bug and fix it.

DbSet is already a repository. Here's what the wrapper costs and when it's worth it.

Why read-only queries waste memory by default — and the one method that fixes it.

Why the wrong return type loads your entire table into memory — and how to filter in SQL instead.

The four things slowing down your EF Core queries — and how to find them.
