Title :
Caching all plans with just one optimizer call
Author :
Dash, Debabrata ; Alagiannis, Ioannis ; Maier, Cristina ; Ailamaki, Anastasia
Author_Institution :
Ecole Polytech. Fed. de Lausanne, Lausanne, Switzerland
Abstract :
Modern database management systems (DBMS) answer a multitude of complex queries on increasingly larger datasets. Given the complexities of the queries and the numerous design features, manual design is no longer an option. Instead, automatically designing the database is vital to maximize its performance and to reduce the total cost of ownership. For this purpose, commercial DBMS feature automated physical designers suggesting an efficient DB design by using the optimizer as a cost model. Unfortunately, consulting the optimizer is time-consuming, an effect which is typically counter-acted by drastically pruning the search space, thereby potentially missing the optimal solution. Recently techniques cache the optimizer´s output and evaluate some plans with the cached results, reducing the number of calls to the optimizer. Still, however, the cost of invoking the optimizer to fill the cache is nontrivial, undermining scalability when running workloads with thousands of queries. In this paper, we use the intermediate optimization results in a dynamic programming based optimizer to reduce the cache initialization overhead. We demonstrate the accuracy and efficiency of our techniques by implementing them on the PostgreSQL open source query optimizer. For a star-schema workload, our techniques build the cost model 5 to 10 times faster than the conventional approach, while preserving accuracy.
Keywords :
SQL; dynamic programming; query processing; relational databases; PostgreSQL open source query optimizer; database management systems; dynamic programming based optimizer; intermediate optimization results; star-schema workload; Algorithm design and analysis; Cost function; Database systems; Design optimization; Dynamic programming; Process design; Query processing; Scalability; Spatial databases; Statistics;
Conference_Titel :
Data Engineering Workshops (ICDEW), 2010 IEEE 26th International Conference on
Conference_Location :
Long Beach, CA
Print_ISBN :
978-1-4244-6522-4
Electronic_ISBN :
978-1-4244-6521-7
DOI :
10.1109/ICDEW.2010.5452737