A Better Tool for Query Optimization
dc.contributor.author | Bitton, Dina | en_US |
dc.contributor.author | Vander Zanden, Bradley T. | en_US |
dc.date.accessioned | 2007-04-23T17:08:53Z | |
dc.date.available | 2007-04-23T17:08:53Z | |
dc.date.issued | 1985-04 | en_US |
dc.description.abstract | When evaluating the performance of a query strategy, one must often estimate the number of distinct values of an attribute in a randomly selected subset of a relation. Most query optimizers compute this estimate based on the assumption that prior to the selection, the attribute values are uniformly distributed in the relation. In this paper we depart from this assumption and instead consider Zipf distributions that are known to accurately model text and name distributions. Given a relation of cardinality $n$ where a non-key attribute $A$ has a Zipf distribution, we derive both an exact formula and an approximate non-iterative formula for the expected number of distinct $A$-values contained in a sample of $k$ randomly selected tuples. The approximation is accurate, and it is very easy to compute. Thus it provides a practical tool to deal with non-uniform distributions in query optimization. | en_US |
dc.format.extent | 1239660 bytes | |
dc.format.extent | 313061 bytes | |
dc.format.mimetype | application/pdf | |
dc.format.mimetype | application/postscript | |
dc.identifier.citation | http://techreports.library.cornell.edu:8081/Dienst/UI/1.0/Display/cul.cs/TR85-671 | en_US |
dc.identifier.uri | https://hdl.handle.net/1813/6511 | |
dc.language.iso | en_US | en_US |
dc.publisher | Cornell University | en_US |
dc.subject | computer science | en_US |
dc.subject | technical report | en_US |
dc.title | A Better Tool for Query Optimization | en_US |
dc.type | technical report | en_US |