Cardinality and selectivity estimation using a single table join index
AssigneeTeradata US, Inc.
InventorsGrace Au, Rama Krishna Korlapati, Haiyan Chen
Life of this patent
Estimating the term…
Loading patent…
AssigneeTeradata US, Inc.
InventorsGrace Au, Rama Krishna Korlapati, Haiyan Chen
Estimating the term…
A method for estimating the selectivity of a database base table predicate, the cardinality of a join, and the cardinality of an aggregation. The method includes receiving a database query, the query comprising one or more query predicates and referencing one or more database tables. One or more join indexes are identified, the join index(es) defined on respective database tables referenced by the database query. The join index(es) comprises one or more join index predicates, and includes one or more join columns in its select list. The row count selected by the query predicates is calculated at least partly using the row count or statistics of the one or more join indexes. The selectivity of the base table predicate is calculated at least partly from the calculated row count. The cardinality of the join is estimated at least partly from the row count and statistics of the identified join index(es).
A method of estimating selectivity of a base table predicate, the method comprising:
A method of estimating cardinality of an aggregation, the method comprising:
A non-transitory computer-readable medium having stored thereon computer-executable instructions that when executed on a computing device cause the computing device to perform a method of estimating selectivity of a base table predicate, the method comprising:
A non-transitory computer-readable medium having stored thereon computer-executable instructions that when executed on a computing device cause the computing device to perform a method of estimating cardinality of an aggregation, the method comprising:
Dependencies are inferred from the claim text.