Open Access
Advanced query optimization techniques for relational database systems
Kyuseok Shim
- 02 Jan 1993
9
TL;DR: A new technique called parametric query optimization is developed which attempts to identify several execution plans, each one of which is optimal for a subset of all possible values of the run-time parameters.
read more
Abstract: Current query optimizers make certain assumptions about many important run-time parameters whose values are unknown at query optimization time. Thus, when these assumptions are violated at run-time, re-optimization is needed or performance suffers. To overcome this shortcoming, we develop a new technique called parametric query optimization which attempts to identify several execution plans, each one of which is optimal for a subset of all possible values of the run-time parameters. We adopt randomized algorithms as the main approach and enhance them with a sideways information passing feature that increases their effectiveness in the new task. Experimental results show that they optimize queries for large numbers of optimizer parameter values in the same time needed by their conventional versions for a single parameter value, without much sacrifice in the output quality.
We then investigate the multiple query optimization problem. When more than one query is presented to a database system, current database systems optimize and process each query separately ignoring common subexpressions between the queries. To avoid this inefficiency, we develop a new heuristic search algorithm that generates a globally optimal plan, which computes the results of all queries simultaneously evaluating common subexpressions only once. Through both theoretical analysis and experimental results, we show that our algorithm is superior to the algorithms that have been proposed in the past.
Finally, we present a query optimization technique in the presence of foreign functions such as operating system libraries, mathematical functions and user defined procedures. Our key observation is that the optimization must be cost-based and take into account semantic information about foreign functions. Therefore, after presenting a simple declarative rule language to express such semantics, we provide an algorithm to enumerate equivalent queries applying the semantic rules and develop an optimization algorithm based on the dynamic programming approach, which finds an optimal plan from the enriched space of the equivalent queries. We also provide query processing techniques and extensions to the cost model that are necessary for foreign functions.
read more
Chat with Paper
AI Agents for this Paper
Find similar papers on Google Scholar, PubMed and Arxiv
Write a critical review of this paper
Analyze citations of this paper to find unaddressed research gaps
Citations
•Book
Optimizing queries with materialized views
Surajit Chaudhuri,Ravi Krishnamurthy,Spyros Potamianos,Kyuseok Shim +3 more
- 01 Jun 1999
TL;DR: In this article, a simple generalization of the traditional query optimization algorithm is proposed to optimize queries in the presence of materialized views. But, the optimization problem is not addressed in this paper.
412
Optimization of queries with user-defined predicates
Surajit Chaudhuri,Kyuseok Shim +1 more
TL;DR: This work presents efficient techniques that are able to guarantee the choice of an optimal plan over the desired execution space for both the naive algorithm as well as for the optimization algorithm with complete rank-ordering, without compromising optimality.
Query Optimization (in Relational Databases).
Thomas Neumann
- 01 Jan 2018
TL;DR: This dissertation proposes how to efficiently establish the extent of inter-query shareability and exploit it so as to compute common sub-expressions once and share the output among the queries and proposes the optimal order of optimization so that the sharing is done in a more cost saving and time conserving manner.
11
On improvement of the volcano search and optimization strategy
Venansius Baryamureeba,John Ngubiri +1 more
- 20 Jun 2004
TL;DR: A search strategy is presented that assembles the queries in an order such that the benefits are high, that detects null sharing cases and therefore terminates the similar sub-expressions' search as well as removing sub- expressions which already exist else where so as to reduce subsequent searching procedures for a global advantage.
Related Papers (5)
Stratis D. Viglas,Jeffrey F. Naughton +1 more
- 03 Jun 2002
Ayla Sayli,Barry G. T. Lowden +1 more
- 24 Aug 1997
Surajit Chaudhuri
- 29 Jun 2009