Smartly Academy

Smartly Academy

The C# Lab

Connection Management and the N+1 Trap

We built an ORM that generates SQL. Today we connect it to a real database — and discover why naive ORMs destroy performance before you notice.

Anto Semeraro's avatar
Anto Semeraro
Mar 05, 2026
∙ Paid

I once watched a single page load trigger 847 database queries.

It wasn't a bug. There were no errors, no exceptions, no timeouts. The page loaded in about four seconds, which felt slow but not broken. A customer list with their recent orders. Simple enough.

Antonello Semeraro is a reader-supported publication. To receive new posts and support my work, co…

User's avatar

Continue reading this post for free, courtesy of Anto Semeraro.

Or purchase a paid subscription.
© 2026 Antonello Semeraro · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture