ACM Home Page
Please provide us with feedback. Feedback
Synopses for query optimization: A space-complexity perspective
Full text PdfPdf (531 KB)
Source
ACM Transactions on Database Systems (TODS) archive
Volume 30 ,  Issue 4  (December 2005) table of contents
Special Issue: SIGMOD/PODS 2004
Pages: 1102 - 1127  
Year of Publication: 2005
ISSN:0362-5915
Authors
Raghav Kaushik  Microsoft Research, Redmond, WA
Jeffrey F. Naughton  University of Wisconsin-Madison, Madison, WI
Raghu Ramakrishnan  University of Wisconsin-Madison, Madison, WI
Venkatesan T. Chakravarthy  IBM India Research Lab, New Delhi, India
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): n/a,   Downloads (12 Months): n/a,   Citation Count: 1
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/1114244.1114251
What is a DOI?

ABSTRACT

Database systems use precomputed synopses of data to estimate the cost of alternative plans during query optimization. A number of alternative synopsis structures have been proposed, but histograms are by far the most commonly used. While histograms have proved to be very effective in (cost estimation for) single-table selections, queries with joins have long been seen as a challenge; under a model where histograms are maintained for individual tables, a celebrated result of Ioannidis and Christodoulakis [1991] observes that errors propagate exponentially with the number of joins in a query.In this article, we make two main contributions. First, we study the space complexity of using synopses for query optimization from a novel information-theoretic perspective. In particular, we offer evidence in support of histograms for single-table selections, including an analysis over data distributions known to be common in practice, and illustrate their limitations for join queries. Second, for a broad class of common queries involving joins (specifically, all queries involving only key-foreign key joins) we show that the strategy of storing a small precomputed sample of the database yields probabilistic guarantees that are almost space-optimal, which is an important property if these samples are to be used as database statistics. This is the first such optimality result, to our knowledge, and suggests that precomputed samples might be an effective way to circumvent the error propagation problem for queries with key-foreign key joins. We support this result empirically through an experimental study that demonstrates the effectiveness of precomputed samples, and also shows the increasing difference in the effectiveness of samples versus multidimensional histograms as the number of joins in the query grows.


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
Blake, C. and Merz, C. 1998. UCI repository of machine learning databases.
6
7
 
8
9
10
11
12
13
 
14
15
 
16
 
17
Gasser, T., Engel, J., and Seifert, B. 1985. Non-parametric density estimation. Ann. Stat.
 
18
19
20
 
21
Hastad, J., Guruswami, V., Sudan, M., and Zuckerman, D. 2001. Combinatorial bounds for list decoding. In IEEE Trans. Inf. Theory.
22
 
23
 
24
Ioannidis, Y. E. 2003. The history of histograms. In Proceedings of the International Conference on Very Large Databases.
25
26
 
27
28
 
29
30
31
 
32
33
34
35
36
37
 
38
39


Collaborative Colleagues:
Raghav Kaushik: colleagues
Jeffrey F. Naughton: colleagues
Raghu Ramakrishnan: colleagues
Venkatesan T. Chakravarthy: colleagues