Diagnosing a slow endpoint
A customer reports that the ShelfLife order history page takes 30 seconds to load. The function returns the right data, but it's far too slow for production traffic.
You want to use Copilot to find the bottleneck, fix it, and make sure the improvement actually works. But jumping straight to "optimize this" without understanding the problem first rarely produces useful results.
This exercise is part of the course
Software Development with GitHub Copilot
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise