Generating statistics on text pattern matching predicates for access planning
Abstract
Statistics for a pattern matching predicate are generated using stored character statistics. A first structure stores, for each of a plurality of character positions, frequently occurring characters in that character position, and a count of the number of occurrences of that character. A second structure stores frequently occurring characters that are subsequent to the frequently occurring characters stored in the first structure, and a probability of occurrence of each frequently occurring subsequent character. To form an estimate of the number of tuples matching a pattern matching predicate, statistics are retrieved for the matching characters in each matching position in the predicate, and then combined to produce the estimate. In the event a statistic is not stored for a desired character, the available statistics are used to make an estimate by accumulating statistics for other characters, and then calculating average frequency of occurrence of characters that do not have stored statistics.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 10 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer system implementing a relational database system and generating a statistic for a pattern matching predicate on an attribute of a relation of said relational database, to be used in optimizing execution of a query directed to one or more attributes of said relation, comprising an electronic memory including storage for said relational database, including a relation having a plurality of tuples including values for a plurality of attributes, and a data storage structure storing character statistics on an attribute, comprising a first structure storing, for each of a plurality of char
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (10)
Non-Patent Literature (1)
- Haas et al., (Non-Patent Literature: "Sampling-Based Selectivity for Joins Using Augmented Frequent Value Statistics", Peter J. Haas, Arun n. Swami, IBM Almaden Research Center, San Jose CA, 1995, IEEE).