Your API Is Slow and It's Probably N+1 Queries
Your list endpoint runs 51 queries where 2 would do. What an N+1 actually is, why it survives code review, and how to fix it with eager loading.
Jul 22, 202611 min read
Search for a command to run...
Articles tagged with #performance
Your list endpoint runs 51 queries where 2 would do. What an N+1 actually is, why it survives code review, and how to fix it with eager loading.
Most Docker images are huge for three fixable reasons: no multi-stage build, a fat base image, no .dockerignore. Here's the fix, step by step.