ShopLite: fix N+1 in order history
60 min · Advanced
Need help? Ask a tutor on WhatsApp (opens in a new tab)A customer's order history is the page every customer opens, so its cost must be a number you have measured, not a guess. Built from entities it costs one query per order and per product; built the right way it costs three queries whatever the page size, and a test keeps it there.
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.