ACM Home Page
Please provide us with feedback. Feedback
Optimizing recursive queries in SQL
Full text PdfPdf (335 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: Industrial papers: query processing table of contents
Pages: 834 - 839  
Year of Publication: 2005
ISBN:1-59593-060-4
Author
Carlos Ordonez  Teradata, NCR, San Diego, CA
Sponsors
ACM: Association for Computing Machinery
SIGMOD: ACM Special Interest Group on Management of Data
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 10,   Downloads (12 Months): 110,   Citation Count: 2
Additional Information:

abstract   references   cited by   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/1066157.1066260
What is a DOI?

ABSTRACT

Recursion represents an important addition to the SQL language. This work focuses on the optimization of linear recursive queries in SQL. To provide an abstract framework for discussion, we focus on computing the transitive closure of a graph. Three optimizations are studied: (1) Early evaluation of row selection conditions. (2) Eliminating duplicate rows in intermediate tables. (3) Defining an enhanced index to accelerate join computation. Optimizations are evaluated on two types of graphs: binary trees and sparse graphs. Binary trees represent an ideal graph with no cycles and a linear number of edges. Sparse graphs represent an average case with some cycles and a linear number of edges. In general, the proposed optimizations produce a significant reduction in the evaluation time of recursive queries.


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
 
5
M. J. Fischer and A. R. Meyer. Boolean matrix multiplication and transitive closure. In IEEE FOCS Conference, pages 129--131, 1971.
6
 
7
ISO-ANSI. Database Language SQL-Part2: SQL/Foundation. ANSI, ISO 9075--2 edition, 1999.
 
8
 
9
 
10
P. Valduriez and H. Boral. Evaluation of recursive queries using join indices. In Expert Database Systems, pages 271--293, 1986.
11
 
12
C. Wu and L. J. Henschen. Answering linear recursive queries in cyclic databases. In FGCS, pages 727--734, 1988.