Skip to main content
Back

Orange and Inria's DOT Tunes MySQL 73% Faster Without Any Warm-Up

A new database tuner from Orange and Inria skips the costly warm-up phase entirely, matching top algorithms while cutting tuning time by up to 73 percent.

Pro

  • Orange, Inria and Univ. Lille released DOT, a lightweight DBMS auto-tuner requiring no warm-up phase.
  • Combines Bayesian Optimization, RFECV knob pruning, and a Likelihood Ratio Test for exploration decisions.
  • Cuts Sysbench tuning time by 73.6% vs BO with expert-selected knobs at equal throughput.
  • On TPC-C, hits 377 TPS in 121 minutes, beating BO+EXP and CDBTune baselines.
  • Adaptive benchmarking early-terminates unpromising runs, saving most of the wall-clock budget.
  • Full source code, benchmarks and configuration scripts available on GitHub; targets MySQL 8.

Tuning a database is one of those chores that sounds simple until you actually try it. Modern systems like MySQL expose hundreds of configuration knobs, but only a handful actually matter for a given workload, and figuring out which ones takes hours of stress-testing before you can even start optimizing. A team from Orange, Inria, and the University of Lille has proposed DOT, a tuner that folds knob selection and configuration search into a single online loop, eliminating the warm-up phase that most state-of-the-art tuners depend on.

The code is available on GitHub under the Orange-OpenSource org, and the paper is scheduled for PVLDB.

The knob selection tax nobody talks about

Modern DBMS such as MySQL expose hundreds of configurable knobs, resulting in a vast tuning space that is both difficult for humans to comprehend and impractical to explore exhaustively. Because tuning every parameter is impractical, most state-of-the-art DBMS tuning algorithms limit the tuning scope by selecting only the 10 to 20 most influential knobs. The catch is that figuring out which 10 to 20 requires a lot of upfront work.

The paper breaks existing approaches into four camps, each with its own overhead:

  • Experience-based methods like CDBTune lean on expert DBAs to pick knobs manually.
  • Screening-based methods like Plackett and Burman rank knobs with lightweight statistical experiments, but the rankings are coarse.
  • ML-based methods like OtterTune and Hunter train Lasso or Random Forest models on pre-collected samples. Conventional heuristics recommend gathering ten samples per knob to ensure model validity, which for 52 knobs means around 14 hours of benchmarking before tuning even starts.
  • LLM-based methods like GPTuner and DB-BERT parse documentation with language models. GPTUNER, for example, reported more than five hours spent solely on LLM-based knob selection, accompanied by financial overhead exceeding $50 in API consumption per tuning.

The authors also show empirically that knob rankings are workload-dependent and unstable across random seeds, meaning that expensive ranking phase often needs to be repeated per workload.

Merging knob selection into the tuning loop

DOT's core idea is to stop treating knob selection as a separate phase. Instead of pre-ranking knobs, it collects performance samples during optimization and uses them to prune irrelevant knobs on the fly. The algorithm juggles three components:

  1. Bayesian Optimization with a Gaussian Process surrogate proposes new configurations to try.
  2. Recursive Feature Elimination with Cross-Validation (RFECV) looks at the samples collected so far and prunes low-importance knobs. Unlike plain CART ranking, RFECV uses cross-validation to pick the optimal subset size automatically rather than requiring an arbitrary cutoff.
  3. A Likelihood Ratio Test (LRT) decides whether to keep exploiting the current knob set or expand the search by adding more knobs from the candidate list.

The LRT is refreshingly simple. It tracks success and failure counts for two actions (stay vs. expand), computes empirical success rates, and picks the action with the higher log-likelihood ratio. A "success" is defined as a per-iteration performance improvement above a small threshold (0.001 in the paper). The whole mechanism needs only four scalars and no exploration schedule.

How a tuning epoch actually runs

The loop is straightforward. DOT starts with an initial set of 20 knobs, either from a prior ranking if one exists or randomly if not. Then for each epoch:

  • Run BO for 5 iterations per newly introduced knob, generating one configuration-performance sample per iteration.
  • Apply RFECV to the accumulated samples to identify the most impactful knobs (with a minimum of 10 retained to preserve BO diversity).
  • Feed the best observed performance into the LRT, which returns either "shrink/stay" or "expand by 5 knobs."
  • When new knobs are added, previous samples are projected onto the new knob set by assigning defaults to unseen dimensions, so no data gets thrown away.

There's also an adaptive benchmarking trick worth calling out. Because benchmarking dominates wall-clock time (roughly 57 to 70 percent depending on workload), DOT runs a shortened benchmark first (40 seconds for OLTP, or 40 percent of queries for OLAP) and only continues to the full run if partial results look promising. At $T_{\text{cut}} = 40$ s, the 95th-percentile MAPE is only 13.7 % for TPC-C and 14.2 % for Sysbench, which is close enough to guide the surrogate.

The numbers

Experiments ran on MySQL 8 in a 4 vCPU, 16 GB VM on Orange's FlexEngine cloud, using Sysbench and TPC-C for OLTP workloads and TPC-H for OLAP. DOT was compared against BO variants, CDBTune, DB-BERT, an LLM-prompt baseline modeled on GPTuner, and two dynamic-search-space baselines the authors implemented themselves.

With an expert ranking available, DOT hit 1728 TPS on Sysbench in about 58 minutes, versus 217 minutes for BO with the same expert-selected 20 knobs. That is a 73.6 percent reduction in tuning time at equal or better throughput. On TPC-C, DOT reached 377 TPS in 121 minutes, beating BO+EXP's 411 minute run.

The more interesting result is what happens without any prior knowledge. DOT starts from a random knob list and still converges to essentially the same throughput as expert-guided BO, just with more variance early on. On TPC-H, the random-init variant even edged out the expert-init variant, since TPC-H's ranking apparently doesn't match expert intuition.

Where it wins, where it doesn't

DOT's overhead breakdown tells a clean story. Benchmarking dominates the wall-clock budget (56%), BO bookkeeping follows at around 27%, RFECV pruning contributes only about 0.4%, and the remaining other tasks (logging, configuration deployment, DBMS restarts, LRT training and inference) consume roughly 16%. The added machinery costs almost nothing.

The tradeoffs to know about:

  • Not workload-aware in the classical sense. DOT tunes per workload; when the authors mixed TPC-C and Sysbench in a periodic pattern, DOT adapted but its throughput was lower than workload-specific configurations because it can't distinguish which workload is running.
  • BO scales poorly past ~20 knobs. The GP fit dominates once samples accumulate, which is why DOT enforces a floor of 10 and a soft target near 20 rather than tuning everything.
  • TPC-H is largely insensitive. For OLAP workloads with flat performance surfaces, most methods produce statistically similar results, so DOT's advantage is mostly in the OLTP setting.
  • CDBTune and DB-BERT look weak here. The comparison deliberately simulates a cold-start scenario with no warm-up data or curated documentation, which is where those methods normally shine.

The real breakthrough isn't a new BO acquisition function or a clever surrogate. It's the observation that pre-tuning knob selection and actual tuning are solving overlapping problems, and merging them removes the biggest cost bottleneck in the pipeline. For anyone running MySQL in production and looking at OtterTune or Hunter for cost reasons, DOT is worth reading before committing to a warm-up phase.