Tell me about a time you improved SQL Server performance for a real application, including what you measured, what you changed, and the results. Use the provided performance measurements to identify queries that improved after a change. Report only queries with measurements in both phases and a lower average duration afterward.
Output
- One row per improved query, with
query_name, before_avg_ms, after_avg_ms, improvement_pct, before_samples, and after_samples
- Include percentage improvement rounded to one decimal place
- Order by
improvement_pct descending, then query_name ascending