# US 2021/0081387 A1 · Method and system of a secondary index in a distributed data base system

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

- Number: US 2021/0081387 A1
- Document ID: US20210081387A1
- Status: Published application
- Kind: A1
- Application number: 16/858,685
- Filed: 2020-04-26
- Published: 2021-03-18
- Earliest claimed: 2019-04-09
- Inventors: LUIGI CARAMICO
- Web page: https://patentgrep.com/patent/US20210081387A1

## CPC

- G06F 16/2272: {Management thereof}
- G06F 16/211: {Schema design and management}
- G06F 16/2246: {Trees, e.g. B+trees}
- G06F 21/6227: {where protection concerns the structure of data, e.g. records, types, queries}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In one aspect, a computerized method for building a secondary index used to access index keys in a distributed database includes the step of providing a distributed database. The computerized method includes the step of providing a database file of the distributed database or on a cluster. The computerized method includes the step of building a first database index of index keys of the database file. The computerized method includes the step of organizing the first database index. The computerized method includes the step of, based on the organization of the first database index, building a second database index.

## Claims

### Claim 1

A computerized method for building a secondary index used to access index keys in a distributed database comprising:
providing a distributed database;
providing a database file of the distributed database or on a cluster;
building the first index of the database file based on the key field;
organizing the first database index; and
based on the organization of the first database index, building a second database index.

### Claim 2 (depends on 1)

The computerized method of claim 1, wherein the second database index is generated based on a logical subdivision of the data or a physical subdivision of the data stored on a media with a value of the key included in the respective block.

### Claim 3 (depends on 2)

The computerized method of claim 2, wherein each logical storage block becomes an entry of the second database index with a minimum value and a maximum value of the key in the respective block and a pointer to the respective block of the first database index.

### Claim 4 (depends on 1)

The computerized method of claim 1, wherein each block of the second database index includes a maximum key value for each block of the sorted first database index.

### Claim 5 (depends on 4)

The computerized method of claim 4, wherein each block of the second database index includes a minimum key value for each block of the sorted first database index.

### Claim 6 (depends on 5)

The computerized method of claim 5, wherein each block of the second database index includes a physical location of the index keys in the first database index.

### Claim 7 (depends on 6)

The computerized method of claim 6 further comprising:
using the secondary database index to directly access the first database index.

### Claim 8 (depends on 7)

The computerized method of claim 7, wherein the step of using the secondary database index to directly access the first database index further comprises:
receiving a read operation for the database file.

### Claim 9 (depends on 8)

The computerized method of claim 8, wherein the step of using the secondary database index to directly access the first database index further comprises:
looking up a first key index block in the second database index.

### Claim 10 (depends on 9)

The computerized method of claim 9, wherein the step of using the secondary database index to directly access the first database index further comprises:
directly accessing the first key index and obtaining a location of the database file.

### Claim 11 (depends on 10)

The computerized method of claim 10, wherein the step of using the secondary database index to directly access the first database index further comprises:
implementing a read operation on the database file.

### Claim 12 (depends on 1)

The computerized method of claim 1, wherein the database file comprises a logical sequence of data stored on a computer media.

### Claim 13 (depends on 1)

The computerized method of claim 1, wherein the organization of the first index comprises a sorting of the first index.

### Claim 14 (depends on 1)

The computerized method of claim 1, wherein the organization of the first index comprises a b-tree organization of the first index.

### Claim 15 (depends on 1)

The computerized method of claim 1, wherein the organization of the first index comprises an Indexed sequential access method (ISAM) organization.
