Whenever you're ready, walk me through how you'd approach this.
How would you optimize a database query for faster performance?
Explain how you would diagnose the bottleneck, evaluate the execution plan, and choose appropriate improvements. Include indexing, query rewrites, statistics, and tradeoffs such as write overhead and memory usage.