# US 2015/0149508 A1 · Summarizing statistical data for database systems and/or environments

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

- Number: US 2015/0149508 A1
- Document ID: US20150149508A1
- Status: Published application
- Kind: A1
- Application number: 14/087,278
- Filed: 2013-11-22
- Published: 2015-05-28
- Earliest claimed: 2013-11-22
- Assignees: Teradata Corporation
- Applicants: Teradata Corporation
- Inventors: Congnan Luo; Heng Yuan; Guillian Wang
- Web page: https://patentgrep.com/patent/US20150149508A1

## CPC

- G06F 16/21: Design, administration or maintenance of databases
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Database values and their associated indicators can be arranged in multiple “buckets.” Adjacent buckets can be combined into a single bucket successively based one or more criteria associated with the indicators to effectively reduce the number of buckets until a desired number is reached.

## Claims

### Claim 1

A method of storing database values and their associated indicator values in a summarized form, wherein the method is implemented at least partly by a device, and wherein the method comprises:
arranging database values of a database in multiple buckets in accordance with an order in an arrangement, wherein each one of the database values is associated with an indicator value, and wherein each one of the multiple buckets includes only one of the database values with its associated indicator value;
determining whether to reduce the number of buckets;
combining two adjacent buckets in the arrangement into a combined bucket based one or more criteria associated with the indicator values when the determining determines to reduce the number of buckets; and
repeating the combining for yet another two adjacent buckets until the determining determines not to further reduce the number of buckets.

### Claim 2 (depends on 1)

The method of claim 1,
wherein the determining of whether reduce the number of buckets determines whether a desired total number of buckets has been reached, and
wherein the repeating repeats the combining for yet another two adjacent buckets until the determining determines not to further reduce the number of buckets as the desired total number of buckets has been reached.

### Claim 3 (depends on 1)

The method of claim 1, wherein the one or more criteria include an error criterion determined based on the difference between two or more of the indicator values.

### Claim 4 (depends on 1)

The method of claim 1, wherein the desired total number of buckets is provided as input.

### Claim 5 (depends on 1)

The method of claim 1, wherein the one or more criteria include the desirability for not combining one or more of the database values with one or more other database values of the database values.

### Claim 6 (depends on 5)

The method of claim 5, wherein the method further comprises: adding an additional error value to a default error value associated with the one or more database values that are not desired to be combined with the one or more other database values of the database values, thereby reducing the likelihood of combining that the one or more database values with the one or more other database values.

### Claim 7 (depends on 5)

The method of claim 5, wherein the method further comprises:
integrating a workload constraint into a combining strategy for combining the buckets; and
adding a preliminary constant error value to a default delta-error associated with the one or more database values in an attempt to avoid combining the one or more database values with the one more other database values.

### Claim 8 (depends on 2)

The method of claim 2, wherein the method further comprises:
determining the desired total number of buckets by considering one or more of the following: cost of memory, storage, computational resources for maintaining a histogram, and input provided by a database administrator and/or database user.

### Claim 9 (depends on 1)

The method of claim 1, wherein the method further comprises:
receiving as input through a user interface the desired total number of buckets and the one or more criteria.

### Claim 10

An apparatus that includes one or more processors operable to store database values and their associated indicator values in a summarized form, by performing at least the following:
arranging database values of a database in multiple buckets in accordance with an order in an arrangement, wherein each one of the database values is associated with an indicator value, and wherein each one of the multiple buckets includes only one of the database values with its associated indicator value;
determining whether to reduce the number of buckets;
combining two adjacent buckets in the arrangement into a combined bucket based one or more criteria associated with the indicator values when the determining determines to reduce the number of buckets; and
repeating the combining for yet another two adjacent buckets until the determining determines not to further reduce the number of buckets.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the determining of whether reduce the number of buckets determines whether a desired total number of buckets has been reached, and wherein the repeating repeats the combining for yet another two adjacent buckets until the determining determines not to further reduce the number of buckets as the desired total number of buckets has been reached.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein the one or more criteria include an error criterion determined based on the difference between two or more of the indicator values.

### Claim 13 (depends on 10)

The apparatus of claim 10, wherein the desired total number of buckets is provided as input.

### Claim 14 (depends on 10)

The apparatus of claim 10, wherein the one or more criteria includes the desirability for not combining one or more of the database values with one or more other database values of the database values.

### Claim 15 (depends on 10)

The apparatus of claim 10, wherein the storing of the database values and their associated indicator values in a summarized form further comprises:
integrating a workload constraint into a combining strategy for combining the buckets; and
adding a preliminary constant error value to a default delta-error associated with the one or more database values in an attempt to avoid combining the one or more database values with the one more other database values.

### Claim 16

A non-transitory computer readable storage medium storing at least computer code that when execute stores database values and their associated indicator values in a summarized form by at least:
arranging database values of a database in multiple buckets in accordance with an order in an arrangement, wherein each one of the database values is associated with an indicator value, and wherein each one of the multiple buckets includes only one of the database values with its associated indicator value;
determining whether to reduce the number of buckets;
combining two adjacent buckets in the arrangement into a combined bucket based one or more criteria associated with the indicator values when the determining determines to reduce the number of buckets; and
repeating the combining for yet another two adjacent buckets until the determining determines not to further reduce the number of buckets.

### Claim 17 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the determining of whether reduce the number of buckets determines whether a desired total number of buckets has been reached, and wherein the repeating repeats the combining for yet another two adjacent buckets until the determining determines not to further reduce the number of buckets as the desired total number of buckets has been reached.

### Claim 18 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the one or more criteria include an error criterion determined based on the difference between two or more of the indicator values.

### Claim 19 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the desired total number of buckets is provided as input.

### Claim 20 (depends on 16)

The non-transitory computer readable storage medium of claim 16, wherein the one or more criteria includes the desirability for not combining one or more of the database values with one or more other database values of the database values.
