API Testing · Middle · Question 45 of 75
What is the N+1 problem in an API?
- 1One endpoint returns one item more than expected
- 2One version of the API has one more field than the next
- 3One request triggers a query per item, making it slow
Show the answer
Correct answer: One request triggers a query per item, making it slow
Explanation
A list of 100 orders with 100 extra queries for customers is slow. Testers notice it by response time growing with list size.