← Graph

GraphQL performance regression tests

concept 2 connections

Practice of writing tests (e.g. Minitest assert_queries helper) that assert how many database queries a given GraphQL operation triggers, with query_cache enabled so cached queries are excluded. Catches N+1 regressions in CI/PR review rather than in production, and guards prior performance improvements against being undone.

category
practice
about
GraphQL performance regression tests concept
Shown as assert_queries-based Minitest helpers to prevent N+1 regressions.
person Caio Almeida
recommends
GraphQL performance regression tests concept
Advocates assert_queries-based tests to catch N+1 before production.

Provenance

Read by
3 extractions