
▲ 25 r/csharp
I made a nuget package that catches N+1 and slow queries in ef core
Hey guys!
I was working on a project and got tired of only finding n+1 issues late.
so i made this: DbEye
it just intercepts ef core queries and yells at you when:
- you're doing n+1 (that select inside loop thing)
- a query takes longer than 500ms (you can change this)
works with any db ef core supports (tested with postgres but should be fine
with sql server, mysql, etc)
code here: https://github.com/BrunoSync/DbEye
nuget here: https://www.nuget.org/packages/DbEye
still early but using it myself. feedback? ideas? PRs? all good.
cheers
u/Icy_Wave5704 — 3 days ago