00 /What You Will Learn
By the end you will be able to
- Diagnose how independent field-level resolvers create catastrophic N+1 query storms in relational databases.
- Measure query amplification programmatically using database query counters and
pg_stat_statements. - Implement the DataLoader pattern to coalesce individual foreign key lookups into single batched SQL queries.
- Analyze query Abstract Syntax Trees (AST) to detect and reject deeply nested recursive denial of service queries.
- Evaluate the architectural tradeoffs between REST fixed endpoints, GraphQL flexibility, and persisted queries.
Before you start
Complete Lab 04 (SQL Basics with PostgreSQL) and Lab 15 (Database Indexing & Slow Queries) first. You should understand primary keys, foreign keys, and SQL query execution. Docker Desktop must be running.