← Graph

graphql-batch

tool 4 connections

Ruby gem originally implemented by Shopify that batches data loading in graphql-ruby resolvers. Using a RecordLoader for a model (e.g. the User author of each Post) collapses one query per instance into a single batched query, fixing the classic N+1 problem for belongs_to relationships.

category
library
language
Ruby
Presented as the Shopify-built solution for batching belongs_to loads.
about
graphql-batch tool
Question compares denormalization with graphql-batch.
person Caio Almeida
recommends
graphql-batch tool
First tool Meedan introduced to fix N+1 on belongs_to.
project Check
uses
graphql-batch tool
Used to batch-load belongs_to associations and avoid N+1 queries.

Provenance

Read by
8 extractions