Performance Checklist
For performance-sensitive GraphQL APIs, review the following areas:
- Detect and eliminate N+1 database access.
- Use request-scoped DataLoader where appropriate.
- Require bounded pagination.
- Add appropriate database indexes.
- Measure resolver and downstream latency.
- Control query depth and complexity.
- Cache stable data when justified.
- Avoid unnecessary downstream calls.
- Monitor expensive operations by name.
Performance optimization should be driven by measurements from realistic workloads.