u/Icy_Wave5704

I made a nuget package that catches N+1 and slow queries in ef core
▲ 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

https://preview.redd.it/zpbt8h2dgr0h1.png?width=805&format=png&auto=webp&s=931f2b6375b239079005fa7d52208e342c8523e4

https://preview.redd.it/jszhpkjegr0h1.png?width=820&format=png&auto=webp&s=17a29b5b2b577d3bdee0f88b0718f8d0abb0fc08

reddit.com
u/Icy_Wave5704 — 3 days ago