Shopify
Shopify logoShopify · Feature trail

GraphQL Batching for N+1 Problem

2 posts · Apr 2018 – Mar 2026

What this trail covers

Shopify has developed and enhanced its GraphQL execution engine by introducing GraphQL Cardinal, a breadth-first execution engine. This new engine resolves each field once across all objects, rather than once per object, significantly improving performance for high-cardinality list queries. This addresses the hidden costs of depth-first traversal, such as linear scale amplification and field-level overhead, leading to substantial reductions in execution time and memory usage. The migration of a

All Shopify trails