Dynamic query evaluation plans

Goetz Graefe, K. Ward

1989 · 73 citations · 15 references

DOIFull text

Open access

Concepts

TL;DR

In database systems, query optimization relies on assumptions about program variables, resource allocation, and data, and the resulting plan’s optimality depends on the validity of these assumptions. The study seeks to determine when reoptimization is necessary for query plans that are used repeatedly over extended periods. The authors develop criteria for triggering reoptimization, implement them efficiently, and propose dynamic query evaluation plans that eliminate the need for reoptimization by modifying the EXODUS optimizer generator. Experimental results demonstrate the necessity of dynamic plans and the required modifications to the EXODUS optimizer generator.

Abstract

In most database systems, a query embedded in a program written in a conventional programming language is optimized when the program is compiled. The query optimizer must make assumptions about the values of the program variables that appear as constants in the query, the resources that can be committed to query evaluation, and the data in the database. The optimality of the resulting query evaluation plan depends on the validity of these assumptions. If a query evaluation plan is used repeatedly over an extended period of time, it is important to determine when reoptimization is necessary. Our work aims at developing criteria when reoptimization is required, how these criteria can be implemented efficiently, and how reoptimization can be avoided by using a new technique called dynamic query evaluation plans . We experimentally demonstrate the need for dynamic plans and outline modifications to the EXODUS optimizer generator required for creating dynamic query evaluation plans.

References

15