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 read1
Search for a command to run...
Articles tagged with #javascript
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.
State management in React can get confusing very quickly. At first everything feels simple. You keep state inside a component, pass props to children, maybe lift state up when needed. For small apps,