Approximating relation sizes using field dependencies
Abstract
A method and system is provided for computing an approximation of the number of distinct results of a query over a relational data source. The approximation uses information about dependencies between fields of relations, in particular the number of distinct values of a field for each possible value of another field. This information can be obtained by analysis of the data stored in the relational data source, or may be specified as annotations to a database schema. An approximation of the number of results is and the dependencies between fields of each part of the query are computed. The approximation can be used to reorder parts of a query, by using the estimated size of parts to guide reordering. The approximation can further be used to determine which parts of a query are relevant to the evaluation of a subquery, which can be used to guide the magic sets transformation.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 24 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for approximating a number of results returned by a query over a relational data source, the method comprising: receiving, by an information processing system, a number of distinct values in each field of each relation in a relational data source, wherein the distinct values are a size approximation; receiving, by the information processing system, a plurality of relationships between fields, where a relationship between a first field and at least a second field is a relationship approximation that approximates a number of distinct values stored in the second fiel
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗