Collecting statistics in a database system
Abstract
Statistics regarding at least one attribute (or column) of a table in a database system are collected using an enhanced mechanism for faster collection. The statistics collection is based on scanning a sample of rows of a given table, with the sample being less than all the rows of the table. The percentage of rows to be read is specified in a statement submitted to the database system. The database system then uses the specified percentage to read the sample rows from the table for collecting statistics on the at least one attribute.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 75.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for use in a parallel database system having a plurality of nodes, comprising: receiving a request to collect statistics of at least an attribute of a table distributed across the nodes, wherein receiving the request comprises receiving the request containing an indication that collecting statistics is to be based on a sample; and collecting statistics for the attribute based on reading a sample of rows of the table, the sample being less than all the rows of the table, wherein collecting the statistics is performed in parallel by software modules executing on corresponding nodes base
- Claim 2Depends on #1
The method of claim 1 , wherein receiving the request comprises receiving the request containing a percentage value to indicate a percentage of
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 75 total)
References Cited — Backward Prior Art (11)
Non-Patent Literature (5)
- D.D. Chamberlin et al., "Sequel 2: A Unified Approach to Data Definition, Manipulation, and Control," IBM Journal of Research and Development, vol. 20, pp. 560-575 (Nov. 1976).
- D.D. Chamberlin et al., "Views, Authorization, and Locking in a Relational Data Base System," National Computer Conference, pp. 425-430 (1975).
- Eugene Wong et al., ACM Transactions on Database Systems, vol. 1, No. 3, "Decomposition-A Strategy for Query Processing," pp. 223-241 (Sep. 1976).
- M.W. Blasgen et al., "On The Evaluation of Queries in a Relational Data Base System," IBM Research Report RJ 1745, pp. 1-44 (Apr. 1976).
- M.W. Blasgen et al., "Storage and Access in Relational Data Bases," IBM Systems Journal, No. 4, pp. 363-377 (1977).