| Efficient exploitation of similar subexpressions for query processing |
| Full text |
Pdf
(375 KB)
|
Source
|
International Conference on Management of Data
archive
Proceedings of the 2007 ACM SIGMOD international conference on Management of data
table of contents
Beijing, China
SESSION: Query processing
table of contents
Pages: 533 - 544
Year of Publication: 2007
ISBN:978-1-59593-686-8
|
|
Authors
|
|
| Sponsors |
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 17, Downloads (12 Months): 110, Citation Count: 6
|
|
|
ABSTRACT
Complex queries often contain common or similar subexpressions, either within a single query or among multiple queries submitted as a batch. If so, query execution time can be improved by evaluating a common subexpression once and reusing the result in multiple places. However, current query optimizers do not recognize and exploit similar subexpressions, even within the same query. We present an efficient, scalable, and principled solution to this long-standing optimization problem. We introduce a light-weight and effective mechanism to detect potential sharing opportunities among expressions. Candidate covering subexpressions are constructed and optimization is resumed to determine which, if any, such subexpressions to include in the final query plan. The chosen subexpression(s) are computed only once and the results are reused to answer other parts of queries. Our solution automatically applies to optimization of query batches, nested queries, and maintenance of multiple materialized views. It is the first comprehensive solution covering all aspects of the problem: detection, construction, and cost-based optimization. Experiments on Microsoft SQL Server show significant performance improvements with minimal overhead.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
|
 |
2
|
|
 |
3
|
|
| |
4
|
Nathan Folkert , Abhinav Gupta , Andrew Witkowski , Sankar Subramanian , Srikanth Bellamkonda , Shrikanth Shankar , Tolga Bozkaya , Lei Sheng, Optimizing refresh of a set of materialized views, Proceedings of the 31st international conference on Very large data bases, August 30-September 02, 2005, Trondheim, Norway
|
| |
5
|
J. Goldstein and P. #&197;. Larson. Optimizing queries using materialized views: A practical, scalable solution. In Proceedings of SIGMOD Conference, 2001.
|
| |
6
|
G. Graefe. The Cascades framework for query optimization. Data Engineering Bulletin, 18(3), 1995.
|
| |
7
|
G. Graefe and W. J. McKenna. The Volcano optimizer generator: Extensibility and efficient search. In Proceeding of ICDE Conference, 1993.
|
| |
8
|
W. Lehner, R. Cochrane, H. Pirahesh, and M. Zaharioudakis. fAST refresh using mass query optimization. In Proc. of ICDE Conference, 2001.
|
 |
9
|
Hoshi Mistry , Prasan Roy , S. Sudarshan , Krithi Ramamritham, Materialized view selection and maintenance using multi-query optimization, Proceedings of the 2001 ACM SIGMOD international conference on Management of data, p.307-318, May 21-24, 2001, Santa Barbara, California, United States
|
| |
10
|
J. Park and A. Segev. Using common subexpressions to optimize multiple queries. In Proceedings of ICDE Conference, 1988.
|
| |
11
|
J. Rao and K. A. Ross. Reusing invariants: A new strategy for correlated queries. In Proceedings of SIGMOD Conference, 1998.
|
| |
12
|
K. A. Ross, D. Srivastava, and S. Sudarshan. Materialized view maintenance and integrity constraint checking: Trading space for time. In Proceedings of SIGMOD Conference, 1996.
|
| |
13
|
P. Roy, S. Seshadri, S. Sudarshan, and S. Bhobe. Efficient and extensible algorithms for multi query optimization. In Proc. of SIGMOD Conference, 2000.
|
| |
14
|
|
 |
15
|
|
| |
16
|
S. N. Subramanian and S. Venkataraman. Cost-based optimization of decision support queries using transient views. In Proceedings of SIGMOD Conference, 1998.
|
CITED BY 6
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Milena G. Ivanova , Martin L. Kersten , Niels J. Nes , Romulo A.P. Gonçalves, An architecture for recycling intermediates in a column-store, Proceedings of the 35th SIGMOD international conference on Management of data, June 29-July 02, 2009, Providence, Rhode Island, USA
|
|
|
|
|