| A nested relational approach to processing SQL subqueries |
| Full text |
Pdf
(433 KB)
|
| Source
|
International Conference on Management of Data
archive
Proceedings of the 2005 ACM SIGMOD international conference on Management of data
table of contents
Baltimore, Maryland
SESSION: Research papers: query processing techniques
table of contents
Pages: 191 - 202
Year of Publication: 2005
ISBN:1-59593-060-4
|
|
Authors
|
|
Bin Cao
|
University of Louisville, Louisville, KY
|
|
Antonio Badia
|
University of Louisville, Louisville, KY
|
|
| Sponsors |
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 20, Downloads (12 Months): 111, Citation Count: 0
|
|
|
ABSTRACT
One of the most powerful features of SQL is the use of nested queries. Most research work on the optimization of nested queries focuses on aggregate subqueries. However, the solutions proposed for non-aggregate subqueries are still limited, especially for queries having multiple subqueries and null values. In this paper, we show that existing approaches to queries containing non-aggregate subqueries proposed in the literature (including rewrites) are not adequate. We then propose a new efficient approach, the nested relational approach, based on the nested relational algebra. Our approach directly unnests non-aggregate subqueries using hash joins, and treats all subqueries in a uniform manner, being able to deal with nested queries of any type and any level. We report on experimental work that confirms that existing approaches have difficulties dealing with non-aggregate subqueries, and that our approach offers better performance. We also discuss some possibilities for algebraic optimization and the issue of integrating our approach in a relational database system.
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
|
M. O. Akinde and M. H. Bohlen. Efficient computation of subqueries in complex olap. In Proceedings of the IEEE ICDE Conference, pages 163--174, 2003.
|
| |
2
|
A. Badia. Computing sql subqueries with boolean aggregates. In Proceedings of the 5th International Conference on Data Warehousing and Knowledge Discovery (DAWAK'03), 2003.
|
 |
3
|
|
| |
4
|
T. Council. The tpc-h benchmark. http://www.tpc.org.
|
| |
5
|
|
 |
6
|
|
 |
7
|
|
 |
8
|
|
| |
9
|
|
 |
10
|
|
 |
11
|
|
 |
12
|
|
| |
13
|
|
| |
14
|
|
| |
15
|
|
| |
16
|
Jun Rao , Bruce G. Lindsay , Guy M. Lohman , Hamid Pirahesh , David E. Simmen, Using EELs, a Practical Approach to Outerjoin and Antijoin Reordering, Proceedings of the 17th International Conference on Data Engineering, p.585-594, April 02-06, 2001
|
 |
17
|
Praveen Seshadri , Joseph M. Hellerstein , Hamid Pirahesh , T. Y. Cliff Leung , Raghu Ramakrishnan , Divesh Srivastava , Peter J. Stuckey , S. Sudarshan, Cost-based optimization for magic: algebra and implementation, Proceedings of the 1996 ACM SIGMOD international conference on Management of data, p.435-446, June 04-06, 1996, Montreal, Quebec, Canada
|
| |
18
|
|
| |
19
|
|
|