# US 2015/0149419 A1 · Techniques for Automatic Data Placement with Compression and Columnar Storage

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

- Number: US 2015/0149419 A1
- Document ID: US20150149419A1
- Status: Published application
- Kind: A1
- Application number: 14/570,199
- Filed: 2014-12-15
- Published: 2015-05-28
- Earliest claimed: 2011-05-19
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: AMIT GANESH; VINEET MARWAH; VIKRAM KAPOOR
- Web page: https://patentgrep.com/patent/US20150149419A1

## CPC

- G06F 16/185: Hierarchical storage management [HSM] systems, e.g. file migration or policies thereof (details of archiving G06F16/11)
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/064: {Management of blocks}
- G06F 3/0653: {Monitoring storage devices or systems}
- G06F 3/0673: {Single storage device}
- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 16/2365: {Ensuring data consistency and integrity}
- G06F 16/24552: {Database cache management}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

For automatic data placement of database data, a plurality of access-tracking data is maintained. The plurality of access-tracking data respectively corresponds to a plurality of data rows that are managed by a database server. While the database server is executing normally, it is automatically determined whether a data row, which is stored in first one or more data blocks, has been recently accessed based on the access-tracking data that corresponds to that data row. After determining that the data row has been recently accessed, the data row is automatically moved from the first one or more data blocks to one or more hot data blocks that are designated for storing those data rows, from the plurality of data rows, that have been recently accessed.

## Claims

### Claim 1

A computer-implemented method comprising:
maintaining a plurality of access-tracking data about accesses to a plurality of data rows in a database that is managed by a database server, said plurality of access-tracking data including first access-tracking data about accesses to a first data row of said plurality of data rows, said database comprising multiple data blocks that store said plurality of data rows, said multiple data blocks comprising a plurality of hot data blocks and a plurality of cold data blocks, where the plurality of hot data blocks are designated for storage of a type of storage that is faster than a type of storage designated for said plurality of cold data blocks;
while the database server is executing database transactions that change said database, performing steps comprising:
based on said first access-tracking data, determining to move said first data row from a cold data block of said plurality of cold data blocks to a hot data block of said plurality of hot data blocks;
in response to determining to move said first data row from a cold data block of said cold data blocks to a hot data block of said hot data blocks, removing said first data row from first one or more cold data blocks of said plurality of cold data blocks and storing the first data row into first one or more hot data blocks of said plurality of hot data blocks; and
wherein the method is performed by one or more computing devices.

### Claim 2 (depends on 1)

The method of claim 1, further performing the steps of:
while the database server is executing database transactions that change said database, performing steps comprising:
based on second access-tracking data of said plurality of access-tracking data, determining to move a second data row of said plurality of data rows from a hot data block of said plurality of hot data blocks to a cold data block of said plurality of cold data blocks;
in response to determining to move a second data row of said plurality of data rows from a hot data block of said plurality of hot data blocks to a cold data block of said plurality of cold data blocks, removing the second data row from second one or more hot data blocks of said plurality of hot data blocks and storing the second data row into second one or more cold data blocks of said plurality of cold data blocks.

### Claim 3 (depends on 2)

The method of claim 2, further comprising compressing the second one or more cold data blocks by using one or more compression mechanisms.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
determining that a new data row is received by the database server; and
in response to determining that a new data row is received by the database server, causing the new data row to be stored in one or more of the hot data blocks.

### Claim 5 (depends on 1)

The method of claim 1, wherein:
particular one or more hot data blocks are persistently stored on one or more storage devices; and
the method further comprises copying each of the particular one or more hot data blocks the one or more storage devices into memory cache managed by the database server.

### Claim 6 (depends on 1)

The method of claim 1, wherein the plurality of data rows belong to one or more tables in one or more databases that are managed by the database server.

### Claim 7 (depends on 1)

The method of claim 1, wherein for each particular data row, of the plurality of data rows, the plurality of access-tracking data includes a corresponding access-tracking data that comprises one or more of:
a first time value indicating a last time when the particular data row was read;
a second time value indicating the last time when the particular data row was modified;
a third time value indicating the last time when a table that stores the particular data row was read;
a fourth time value indicating the last time when the table that stores the particular data row was modified.

### Claim 8 (depends on 1)

The method of claim 1, wherein maintaining the plurality of access-tracking data comprises:
continuously updating and storing a particular access-tracking data corresponding to a particular data row, of the plurality of data rows, in one or more of:
the particular data row; and
a block header of a particular data block in which the particular data row or a portion thereof is stored.

### Claim 9 (depends on 1)

The method of claim 1, wherein the plurality of hot data blocks are organized in a hierarchy based on access times.

### Claim 10 (depends on 1)

The method of claim 1, wherein automatically removing the first data row from the first one or more cold data blocks and storing the first data row in the first one or more hot data blocks is performed in accordance with one or more policies that are configured at the database server.

### Claim 11

A non-transitory computer-readable storage medium storing one or more sequences of instructions which, when executed by one or more processors, cause:
maintaining a plurality of access-tracking data about accesses to a plurality of data rows in a database that is managed by a database server, said plurality of access-tracking data including first access-tracking data about accesses to a first data row of said plurality of data rows, said database comprising multiple data blocks that store said plurality of data rows, said multiple data blocks comprising a plurality of hot data blocks and a plurality of cold data blocks, where the plurality of hot data blocks are designated for storage of a type of storage that is faster than a type of storage designated for said plurality of cold data blocks;
while the database server is executing database transactions that change said database, performing steps comprising:
based on said first access-tracking data, determining to move said first data row from a cold data block of said plurality of cold data blocks to a hot data block of said plurality of hot data blocks; and
in response to determining to move said first data row from a cold data block of said cold data blocks to a hot data block of said hot data blocks, removing said first data row from first one or more cold data blocks of said plurality of cold data blocks and storing the first data row into first one or more hot data blocks of said plurality of hot data blocks.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, the one or more sequences of instructions further comprising instructions that cause:
while the database server is executing database transactions that change said database, performing steps comprising:
based on second access-tracking data of said plurality of access-tracking data, determining to move a second data row of said plurality of data rows from a hot data block of said plurality of hot data blocks to a cold data block of said plurality of cold data blocks;
in response to determining to move a second data row of said plurality of data rows from a hot data block of said plurality of hot data blocks to a cold data block of said plurality of cold data blocks, removing the second data row from second one or more hot data blocks of said plurality of hot data blocks and storing the second data row into second one or more cold data blocks of said plurality of cold data blocks.

### Claim 13 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, the one or more sequences of instructions further comprising instructions that cause compressing the second one or more cold data blocks by using one or more compression mechanisms.

### Claim 14 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, the one or more sequences of instructions further comprising instructions that cause:
determining that a new data row is received by the database server; and
in response to determining that a new data row is received by the database server, causing the new data row to be stored in one or more of the hot data blocks.

### Claim 15 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein:
particular one or more hot data blocks are persistently stored on one or more storage devices; and
the one or more sequences of instructions further comprise instructions that cause copying each of the particular one or more hot data blocks the one or more storage devices into memory cache managed by the database server.

### Claim 16 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the plurality of data rows belong to one or more tables in one or more databases that are managed by the database server.

### Claim 17 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein for each particular data row, of the plurality of data rows, the plurality of access-tracking data includes a corresponding access-tracking data that comprises one or more of:
a first time value indicating a last time when the particular data row was read;
a second time value indicating the last time when the particular data row was modified;
a third time value indicating the last time when a table that stores the particular data row was read;
a fourth time value indicating the last time when the table that stores the particular data row was modified.

### Claim 18 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein maintaining the plurality of access-tracking data comprises:
continuously updating and storing a particular access-tracking data corresponding to a particular data row, of the plurality of data rows, in one or more of:
the particular data row; and
a block header of a particular data block in which the particular data row or a portion thereof is stored.

### Claim 19 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the plurality of hot data blocks are organized in a hierarchy based on access times.

### Claim 20 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein automatically removing the first data row from the first one or more cold data blocks and storing the first data row in the first one or more hot data blocks is performed in accordance with one or more policies that are configured at the database server.
