~/talk

Common mistakes in EF Core

Talkat NDC Porto 2023 · 2023-10-16..10-20· [databases]

Shows concrete fixes that turn slow EF Core into fast EF Core using .NET 7 and a 7 million-row sales table and load tests with benchmark.us and bombardier. Demonstrates IEnumerable vs IQueryable causing 7M rows fetched (≈2 GB memory, 64× slower, 3.5s vs 130ms), AsNoTracking cutting memory ~50% and speeding queries, cancellation tokens cancel SQL on user abort, ExecuteUpdate for server-side bulk updates (multiple× faster). Also covers DbContext pooling and TagWith for tracing problematic queries.

AI-written summary · about

  1. 0:00EF Core common mistakes
  2. 2:17Seven deadly sins in EF Core
  3. 9:47IAsyncEnumerable performance trap
  4. 16:38AsNoTracking for read-only
  5. 19:52Explicit includes hidden costs
  6. 22:42Pagination pitfalls and fixes
  7. 26:40Cancellation tokens to prevent waste
  8. 32:36ExecuteUpdate in EF Core 7/8
  9. 36:37Advanced EF Core tips
  10. 47:31Performance: when it matters
  11. 55:32Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.