Sampling for database systems
Abstract
A database server supports weighted and unweighted sampling of records or tuples in accordance with desired sampling semantics such as with replacement (WR), without replacement (WoR), or independent coin flips (CF) semantics, for example. The database server may perform such sampling sequentially not only to sample non-materialized records, such as those produced as a stream by a pipeline in a query tree for example, but also to sample records, whether materialized or not, in a single pass. The database server also supports sampling over a join of two relations of records or tuples without requiring the computation of the full join and without requiring the materialization of both relations and/or indexes on the join attribute values of both relations.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 30 · Forward citations: 18.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method that samples with replacement a plurality of records in a database system in a single sequential pass of the records, comprising: identifying the plurality of records; determining a sum of weights to be assigned to all records in the plurality of records; when a record is selected to be included in the sample, tabulating a remaining weight that subtracts all weights associated with records included in the sample from the sum of weights; for each of the plurality of records: inputting the record to a sampling operator that determines a number of times the record is included in the samp
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 18 total)
References Cited — Backward Prior Art (30)
Non-Patent Literature (5)
- "Random Sampling from Databases"-Fran Olken-University of California at Berkeley-1993 (pp. 1-172).
- "Sampling-Based Estimation of the Number of Distinct Values of an Attribute"-Haas et al.-Proceedings of the 21st VLDB Conference, Zurich, Swizerland, 1995 (pp. 1-12 or 311-322).
- Ahrens et al.-"Sequential Random Sampling"-ACM-TOMS-vol. 11, Issue 2 (Jun. 1985) (pp. 157-169).
- Chaudhuri et al. "On Random Sampling over Joins", ACM-Jun. 1999 (pp. 263-274).
- Chaudhuri, Surajit, et al. "Random Sampling for Histogram Construction: How Much is Enough?" Proceedings of ACM SIGMOD, Seattle, Washington, pp. 436-447 (Jun. 1-4, 1998).