# US 2017/0293649 A1 · Automatically revising synopsis table structure

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2017/0293649 A1
- Document ID: US20170293649A1
- Status: Published application
- Kind: A1
- Application number: 15/094,213
- Filed: 2016-04-08
- Published: 2017-10-12
- Earliest claimed: 2016-04-08
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Ian R. Finlay; Christian M. Garcia-Arellano; Adam J. Storm; Calisto P. Zuzarte
- Web page: https://patentgrep.com/patent/US20170293649A1

## CPC

- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/283: {Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP}
- G06F 16/215: Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/24539: {using cached or materialised query results}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Merging adjacent rows of a synopsis table so as to increase the effectiveness of the synopsis table regarding data skipping. Adjacent rows for merging are identified based on statistics regarding: (i) queries of the database; (ii) effectiveness of the synopsis table for data skipping; and (iii) usage of predicates in queries of the database. Once merged, the synopsis table is smaller, and more effective with respect to data skipping, while fewer computing resources (administrative, maintenance, memory, clock cycles, storage space, etc.) are needed to process the database queries.

## Claims

### Claim at position 1

1-6. (canceled)

### Claim 7

A computer program product comprising a computer readable storage medium having stored thereon:
first program instructions programmed to receive an original version of a synopsis table comprising a plurality of synopsis table records, where the plurality of synopsis table records respectively correspond to a first plurality of blocks, with each block of the first plurality of blocks corresponding to a set of database record(s) stored in a database, and where each synopsis table record of the original version of the synopsis table includes fields having values that characterize data in fields of the respectively corresponding block of database records of the first plurality of blocks;
second program instructions programmed to track a set of usage statistic(s), including at least a first usage statistic, with each usage statistic of the set of usage statistic(s) relating to usage of the synopsis table and/or usage of the database;
third program instructions programmed to determine that the set of usage statistic(s) meet a first synopsis table re-organization condition, with the first synopsis table re-organization condition being an operational experiential type precondition; and
on at least condition that the first synopsis table re-organization condition has been met, fourth program instructions programmed to re-organize the synopsis table.

### Claim 8 (depends on 7)

The computer program product of claim 7 wherein the first synopsis table re-organization condition is one of the following preconditions: (i) a pre-determined number of records are deleted from a block in the database, (ii) a proportion of non-qualifying data, which non-qualifying data does not qualify according to predicate(s) of a set of scan(s), that is skipped during performance of the set of scan(s) is below a pre-determined threshold, (iii) the database is re-configured, (iv) effectiveness of a Bloom filter is below a pre-determined threshold, or (v) a precondition based on the number and/or size of inserts made during insert operations that insert record(s) into the database are made.

### Claim 9 (depends on 7)

The computer program product of claim 7 further comprising:
upon occurrence of any precondition of a plurality of operational experiential preconditions, fifth program instructions programmed to re-organize the synopsis table;
wherein the plurality of operational experiential preconditions include all of the following preconditions: (i) a pre-determined number of records are deleted from a block in the database, (ii) a proportion of non-qualifying data, which non-qualifying data does not qualify according to predicate(s) of a set of scan(s), that is skipped during performance of the set of scan(s) is below a pre-determined threshold, (iii) the database is re-configured, (iv) effectiveness of a Bloom filter is below a pre-determined threshold, or (v) a precondition based on the number and/or size of inserts made during insert operations that insert record(s) into the database are made.

### Claim 10 (depends on 7)

The computer program product of claim 7 wherein a synopsis table record includes:
a Bloom filter based on values occurring in the corresponding block of database records.

### Claim 11 (depends on 10)

The computer program product of claim 10, further comprising:
fifth program instructions programmed to merge a first record of the first synopsis table with a second record of the first synopsis table to generate a merged record in the updated synopsis table, wherein the first and second records of the first synopsis table are adjacent to each other.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein:
the merged record in the revised synopsis table includes the lesser of the respective minima of the first and second records of the first synopsis table;
the merged record in the revised synopsis table includes the greater of the respective maxima of the first and second records of the first synopsis table; and
the merged record in the revised synopsis table includes a Bloom filter that is a bitwise logical OR result of the respective Bloom filters of the first and second records of the first synopsis table.

### Claim 13

A computer system comprising:
a processor(s) set; and
a computer readable storage medium;
wherein:
the processor(s) set is structured, located, connected and/or programmed to run program instructions stored on the computer readable storage medium; and
the program instructions include:
first program instructions programmed to receive an original version of a synopsis table comprising a plurality of synopsis table records, where the plurality of synopsis table records respectively correspond to a first plurality of blocks, with each block of the first plurality of blocks corresponding to a set of database record(s) stored in a database, and where each synopsis table record of the original version of the synopsis table includes fields having values that characterize data in fields of the respectively corresponding block of database records of the first plurality of blocks;
second program instructions programmed to track a set of usage statistic(s), including at least a first usage statistic, with each usage statistic of the set of usage statistic(s) relating to usage of the synopsis table and/or usage of the database;
third program instructions programmed to determine that the set of usage statistic(s) meet a first synopsis table re-organization condition, with the first synopsis table re-organization condition being an operational experiential type precondition; and
on at least condition that the first synopsis table re-organization condition has been met, fourth program instructions programmed to re-organize the synopsis table.

### Claim 14 (depends on 13)

The computer system of claim 13 wherein the first synopsis table re-organization condition is one of the following preconditions: (i) a pre-determined number of records are deleted from a block in the database, (ii) a proportion of non-qualifying data, which non-qualifying data does not qualify according to predicate(s) of a set of scan(s), that is skipped during performance of the set of scan(s) is below a pre-determined threshold, (iii) the database is re-configured, (iv) effectiveness of a Bloom filter is below a pre-determined threshold, or (v) a precondition based on the number and/or size of inserts made during insert operations that insert record(s) into the database are made.

### Claim 15 (depends on 13)

The computer system of claim 13 further comprising:
upon occurrence of any precondition of a plurality of operational experiential preconditions, fifth program instructions programmed to re-organize the synopsis table;
wherein the plurality of operational experiential preconditions include all of the following preconditions: (i) a pre-determined number of records are deleted from a block in the database, (ii) a proportion of non-qualifying data, which non-qualifying data does not qualify according to predicate(s) of a set of scan(s), that is skipped during performance of the set of scan(s) is below a pre-determined threshold, (iii) the database is re-configured, (iv) effectiveness of a Bloom filter is below a pre-determined threshold, or (v) a precondition based on the number and/or size of inserts made during insert operations that insert record(s) into the database.

### Claim 16 (depends on 13)

The computer system of claim 13 wherein a synopsis table record includes:
a Bloom filter based on values occurring in the corresponding block of database records.

### Claim 17 (depends on 16)

The computer system of claim 16, further comprising:
fifth program instructions programmed to merge a first record of the first synopsis table with a second record of the first synopsis table to generate a merged record in the updated synopsis table, wherein the first and second records of the first synopsis table are adjacent to each other.

### Claim 18 (depends on 17)

The computer system of claim 17, wherein:
the merged record in the revised synopsis table includes the lesser of the respective minima of the first and second records of the first synopsis table;
the merged record in the revised synopsis table includes the greater of the respective maxima of the first and second records of the first synopsis table; and
the merged record in the revised synopsis table includes a Bloom filter that is a bitwise logical OR result of the respective Bloom filters of the first and second records of the first synopsis table.
