Reproduce “Deploying a Steered Query Optimizer in Production at Microsoft” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Wangda Zhang, Matteo Interlandi, Paul Mineiro, Shi Qiao, Nasim Ghazanfari Karlen Lie, Marc Friedman, Rafah Hosn, Hiren Patel and 1 more

Microsoft's QO-Advisor system is the first known production deployment of a steered query optimizer, which systematically applies machine learning to guide their SCOPE distributed data processing system. It achieved aggregate reductions of 14.3% in PNhours and 8.9% in latency for critical workloads, while effectively containing performance regressions.

Key insights

  • High variability in job latency in cloud environments makes it an unreliable metric for consistent evaluation and learning; PNhours (total CPU and I/O time) proved more stable for optimization.
  • Optimizer-estimated costs correlate poorly with actual job latency improvements, but are essential for efficiently pruning the search space before expensive runtime validation.
  • Changes in DataRead and DataWritten are strong predictors for changes in PNhours, enabling an accurate validation model to guard against performance regressions.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.