ACM Home Page
Please provide us with feedback. Feedback
Reusing invariants: a new strategy for correlated queries
Full text PdfPdf (1.55 MB)
Source International Conference on Management of Data archive
Proceedings of the 1998 ACM SIGMOD international conference on Management of data table of contents
Seattle, Washington, United States
Pages: 37 - 48  
Year of Publication: 1998
ISBN:0-89791-995-5
Also published in ...
Authors
Jun Rao  Department of Computer Science, Columbia University
Kenneth A. Ross  Department of Computer Science, Columbia University
Sponsors
SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
SIGART: ACM Special Interest Group on Artificial Intelligence
SIGMOD: ACM Special Interest Group on Management of Data
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 1,   Downloads (12 Months): 30,   Citation Count: 8
Additional Information:

abstract   references   cited by   index terms   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/276304.276309
What is a DOI?

ABSTRACT

Correlated queries are very common and important in decision support systems. Traditional nested iteration evaluation methods for such queries can be very time consuming. When they apply, query rewriting techniques have been shown to be much more efficient. But query rewriting is not always possible. When query rewriting does not apply, can we do something better than the traditional nested iteration methods? In this paper, we propose a new invariant technique to evaluate correlated queries efficiently. The basic idea is to recognize the part of the subquery that is not related to the outer references and cache the result of that part after its first execution. Later, we can reuse the result and combine it with the result of the rest of the subquery that is changing for each iteration. Our technique applies to arbitrary correlated subqueries. This paper introduces algorithms to recognize the invariant part of a data flow tree, and to restructure the evaluation plan to reuse the stored intermediate result. We also propose an efficient method to teach an existing join optimizer to understand the invariant feature and thus allow it to be able to generate better join plans in the new context. Some other related optimization techniques are also discussed. The proposed techniques were implemented within three months on an existing real commercial database system. We also experimentally evaluate our proposed technique. Our evaluation indicates that, when query rewriting is not possible, the invariant technique is significantly better than the traditional nested iteration method. Even when query rewriting applies, the invariant technique is sometimes better than the query rewriting technique. Our conclusion is that the invariant technique should be considered as one of the alternatives in evaluating correlated queries since it fills the gap left by rewriting techniques.


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.

 
Bel96
Randy Bello. Invariant subplans in dataflow. Sybase IQ Internal Engineering Document~ 1996.
 
CD85
Hong-Tai Chou and David J. Dewitt. An evaluation of buffer management strategies for relational database systems. In Proceedings of the 11th VLDB Conference, pages 127-141, 1985.
 
Cha97
 
CR97
 
Day87
 
Gra94
GW87
Hel94
HHW97
HN96
JM96
Kim82
 
Lea96
Dan Leary. Dataflow operators feature specification. Sybase IQ Internal Engineering Document, 1996.
 
Mic68
Donald Michie. "memo" functions and machine learning. Nature, 218:19-22, 1968.
 
OL90
OQ97
 
Pau97
Glenn Paulley, 1997. personal communication.
PHH92
SAC+79
Sel88
 
SG90
 
SPL96
SSM96
 
Syb97a
Sybase Corporation. Adaptive Server Enterprise 11.5, 1997.
 
Syb97b
Sybase Corporation. Sybase IQ 11.2.1, 1997.
 
TPC95
Tpc-d benchmark standard specification (revision 1.0). May 1995.
 
YL95

CITED BY  8

Collaborative Colleagues:
Jun Rao: colleagues
Kenneth A. Ross: colleagues