# US 2017/0293642 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/0293642 A1
- Document ID: US20170293642A1
- Status: Published application
- Kind: A1
- Application number: 15/474,020
- Filed: 2017-03-30
- 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/US20170293642A1

## 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 1

A computer implemented method comprising:
receiving 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;
tracking 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;
determining 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, re-organizing the synopsis table.

### Claim 2 (depends on 1)

The computer implemented method of claim 1 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 3 (depends on 1)

The computer implemented method of claim 1 further comprising:
upon occurrence of any precondition of a plurality of operational experiential preconditions, re-organizing 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 4 (depends on 1)

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

### Claim 5 (depends on 4)

The computer implemented method of claim 4, further comprising:
merging 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 6 (depends on 5)

The computer implemented method of claim 5, 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.
