Patent · US Active

Computing domain cardinality estimates for optimizing database query execution

US10824625B1 · kind B1 · utility

3Cited by
1References
20Claims
0Family size

Assignee

Inventors

Key dates

Filing dateDec 28, 2018
Grant dateNov 3, 2020
Priority date
Expiry dateApr 24, 2039

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06N5/01
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A method implements optimization of database queries by computing domain cardinality estimates. A client sends a database query to a server. The method parses the query to identify data columns. For each of the data columns, the method computes a lower bound and an upper bound of distinct data values using a pre-computed table size. The method also computes a patch factor by applying a pre-computed function to a ratio between a number of distinct data values that appear exactly once in a data sample and a number of distinct data values in the sample. Based on the patch factor, the lower bound, and the upper bound, the method computes an estimate of distinct values for each of the data columns. The method subsequently generates an execution plan for the query according to the computed estimates, executes the execution plan, and returns a result set to the client.

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.