Glossary term
What is N+1 (N+1 query problem)?
N+1 stands for N+1 query problem.
In Backend in Depth
One query for a list, then one more query for each row. With 100 users you make 101 queries. Fix it with eager loading or batching.
Learn it properly · Backend in DepthLesson 8: Prisma in Production: N+1, include, Batching and Connection PoolsHow N+1 appears in loops and GraphQL resolvers, how Prisma batches findUnique, how it loads relations, and why you share a single client.In Full-Stack Questions
One query to load a list, then one more query for each row. It is slow. Fix it by loading related data together.
Learn it properly · Full-Stack QuestionsLesson 8: Prisma & SQL Interview QuestionsPrisma 7, migrations, relations, transactions, N+1, raw queries, and the SQL behind it.