|
|
|
|
|
by har777
925 days ago
|
|
Simple middleware can warn you about lazy loading/N+1 queries. Most of the time people just forget it happens. Try using: https://github.com/har777/pellet Disclaimer: I built it :p You can easily see N+1 queries on the console itself or write a callback function to track such issues on your monitoring stack of choice on production. |
|
Also we often had something that was more like 1+3N, basically a 1+N problem but it was looping through the same 3 queries over and over.