Describe a time you had to optimize a slow-running query. What was your process for identifying the bottleneck?