Ruby: Use flamegraphs to investigate GraphQL performance issues

GraphQL can throw up some surprising N+1 style performance issues in Ruby on Rails. Usually this come up as &ldquo;Why is this particular GraphQL query so slow?&rdquo; Here I&rsquo;m going to talk through using a Query Analyzer , StackProf and Speedscope to find out what is slowing down that query so you can fix it. What are we hunting? Well N+1&rsquo;s typically look something like this 👇 on a…