Enabling Data Dependency-based Query Optimization
<|reference_start|>Enabling Data Dependency-based Query Optimization: Data dependency-based query optimization techniques can considerably improve database system performance: we apply three such optimization techniques to five database management systems (DBMSs) and observe throughput improvements between 5 % and 33 %. We address two key challenges to achieve these results: (i) efficiently identifying and extracting relevant dependencies from the data, and (ii) making use of the dependencies through SQL rewrites or as transformation rules in the optimizer.   First, the schema does not provide all relevant dependencies. We present a workload-driven dependency discovery approach to find additional dependencies within milliseconds. Second, the throughput improvement of a state-of-the-art DBMS is 13 % using only SQL rewrites, but 20 % when we integrate dependency-based optimization into the optimizer and execution engine, e. g., by employing dependency propagation and subquery handling. Using all relevant dependencies, the runtime of four standard benchmarks improves by up to 10 % compared to using only primary and foreign keys, and up to 22 % compared to not using dependencies. The dependency discovery overhead amortizes after a single workload execution.<|reference_end|>
@article{lindner2024enabling,
    title={Enabling Data Dependency-based Query Optimization},
    author={Daniel Lindner, Daniel Ritter, and Felix Naumann},
    journal={arXiv preprint arXiv:2406.06886},
    year={2024},
    archivePrefix={arXiv},
    eprint={2406.06886},
    primaryClass={cs.DB}
}