Database-table sampling-percentage selection
AssigneeTeradata US, Inc.
InventorsSung Jin Kim, Rama Krishna Korlapati
Life of this patent
Estimating the term…
Loading patent…
AssigneeTeradata US, Inc.
InventorsSung Jin Kim, Rama Krishna Korlapati
Estimating the term…
A database system may include a storage device configured to store a plurality of database tables. The database system may further include a processor in communication with the storage device. The processor may determine a first sampling percentage to be used on a column of a database table. The first sampling percentage may be based on a respective frequency of each column value in the column. The processor may determine a second sampling percentage to be used on the column in generation of the plan to respond to the database query. The second sampling percentage may be based on size of the database table. The processor may select the maximum of the first sampling percentage and the second sampling percentage. The selected sampling percentage may be used to collect statistics on the column. The collected statistics may be used to generate at least one database query response plan associated with the column. A method and computer-readable medium may also be implemented.
A database system comprising:
A method comprising:
A non-transitory computer-readable medium encoded with a plurality of instructions executable by a processor, the plurality of instructions comprising:
The non-transitory computer-readable medium of 17, wherein the instructions to determine the first sampling percentage value comprise instructions to determine the first sampling percentage value according to the equation:
Dependencies are inferred from the claim text.