N+1 Query Problem
← Back to Query Optimization
A performance anti-pattern where code executes one query to fetch a list and then N additional queries to fetch related data for each item. Solved through eager loading, batch loading, or the DataLoader pattern.