RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Automatically avoiding GraphQL N+1s

It’s hard to optimize queries when you don’t know in advance what the query will be. To avoid an explosion of database requests when a GraphQL query fetches nested data, it seems like you would need to analyze the query and create a plan for executing it efficiently. But that’s a lot of work, complex, and prone to mistakes. So how can you provide an API that’s not only flexible, but also performs well?

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in