Incremental computation of nested relational query expressions
Journal Article
·
· ACM Transactions on Database Systems
- Aalborg Univ. (Denmark)
- Georgia Institute of Technology, Atlanta, GA (United States)
Efficient algorithms for incrementally computing nested query expressions do not exist. Nested query expressions are query expressions in which selection/join predicates contain subqueries. In order to respond to this problem, we propose a two-step strategy for incrementally computing nested query expressions. In step (1), the query expression is transformed into an equivalent unnested flat query expression. In step (2), the flat query expression is incrementally computed. To support step (1), we have developed a very concise algebra-to-algebra transformation algorithm, and we have formally proved its correctness. The flat query expressions resulting from the transformation make intensive use of the relational set-difference operator. To support step (2), we present and analyze an efficient algorithm for incrementally computing set differences based on view pointer caches. When combined with existing incremental algorithms for SPJ queries, our incremental set-difference algorithm can be used to compute the unnested flat query expressions efficiently. It is important to notice that without our incremental set-difference algorithm the existing incremental algorithms for SPJ queries are useless for any query involving the set-difference operator, including queries that are not the result of unnesting nested queries. 45 refs., 4 figs., 5 tabs.
- OSTI ID:
- 273027
- Journal Information:
- ACM Transactions on Database Systems, Journal Name: ACM Transactions on Database Systems Journal Issue: 2 Vol. 20; ISSN 0362-5915; ISSN ATDSD3
- Country of Publication:
- United States
- Language:
- English
Similar Records
Optimization of nested SQL queries revisited
Translating relational queries into iterative programs
Fast algorithms for Universal quantification in large databases
Conference
·
Tue Mar 31 23:00:00 EST 1987
·
OSTI ID:6470730
Translating relational queries into iterative programs
Book
·
Wed Dec 31 23:00:00 EST 1986
·
OSTI ID:5435674
Fast algorithms for Universal quantification in large databases
Journal Article
·
Thu Jun 01 00:00:00 EDT 1995
· ACM Transactions on Database Systems
·
OSTI ID:273029