Stackprofin' to N+1 query detection
Getting to the line-of-code of problematic N+1 SQL queries in production is…hard. A deep dive into how we used Stackprof to add N+1 detection to Scout.
Getting to the line-of-code of problematic N+1 SQL queries in production is…hard. A deep dive into how we used Stackprof to add N+1 detection to Scout.
Comments
This is a great interview with DHH about N+1 Queries: https://www.youtube.com/watch?v=ktZLpjCanvg&feature=youtu.be
Basically, his view of N+1 is that they are a feature. Using Russian Doll Caching, you can turn the drawback that N+1 usually causes into a performance enhancement.
Post a comment