Performance Killers in EF Core: Top 11 Common Mistakes and How to Fix Them

A comprehensive guide to diagnosing and fixing common EF Core performance issues, with practical code examples and real-world performance improvements.

July 17, 2025 · 22 min · 4292 words · Abhinaw

Avoiding N+1 Queries in EF Core: Include() vs SplitQuery()

A practical guide to fixing N+1 queries in EF Core using Include and AsSplitQuery, with code samples and performance tips.

July 8, 2025 · Last modified: July 10, 2025 · 11 min · 2121 words · Abhinaw

What Is a Correlated Subquery in SQL?

TL;DR: A correlated subquery refers to columns from the outer query and runs once for every row in the outer query. It’s commonly used in WHERE, HAVING, or SELECT clauses to filter or compute values based on each row. Correlated subqueries are powerful but can be slow on large datasets, optimize them using joins or EXISTS where possible. Introduction to Correlated Subqueries Ever run into a SQL problem where you need to compare each row with some calculation based on related data? That’s where correlated subqueries come in handy. These are special subqueries that reference columns from the outer query, essentially creating a link between the inner and outer parts of your query. ...

June 20, 2025 · Last modified: July 4, 2025 · 6 min · 1163 words · Abhinaw