# US 2015/0088824 A1 · Granular creation and refresh of columnar data

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

- Number: US 2015/0088824 A1
- Document ID: US20150088824A1
- Status: Published application
- Kind: A1
- Application number: 14/337,045
- Filed: 2014-07-21
- Published: 2015-03-26
- Earliest claimed: 2013-09-21
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Jesse Kamp; Vineet Marwah; Amit Ganesh; Michael Gleeson; Maheswaran Venkatachalam; Allison Holloway; Niloy Mukherjee; Sanket Hase
- Web page: https://patentgrep.com/patent/US20150088824A1

## CPC

- G06F 16/221: {Column-oriented storage; Management thereof}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/064: {Management of blocks}
- G06F 3/065: {Replication mechanisms}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F 12/0815: Cache consistency protocols
- G06F 12/1018: involving hashing techniques, e.g. inverted page tables
- G06F 15/78: comprising a single central processing unit
- G06F 15/8007: {single instruction multiple data [SIMD] multiprocessors}
- G06F 15/8076: {Details on data register access}
- G06F 15/8084: {Special arrangements thereof, e.g. mask or switch}
- G06F 16/22: Indexing; Data structures therefor; Storage structures
- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/2455: Query execution
- G06F 16/284: {Relational databases}
- G06F 2212/1021: Hit rate improvement
- G06F 2212/1032: Reliability improvement, data loss prevention, degraded operation etc
- G06F 2212/2542: Non-uniform memory access [NUMA] architecture
- G06F 2212/313: In storage device
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques are provided for granular load and refresh of columnar data. In an embodiment, a particular data object that contains particular data formatted different from column-major format is maintained, the particular data including first data and second data. First and second data objects contain the first and second data, respectively, organized in the column-major format. In response to changes being committed to the first data in the particular data object, invalidating one or more rows of the first data object. In response to a number of invalidated rows of the first data object exceeding a threshold, automatically performing a refresh operation on the first data object independent of any refresh operation on the second data object.

## Claims

### Claim 1

A method comprising:
maintaining a particular data object that contains particular data formatted different from column-major format, wherein the particular data includes first data and second data;
maintaining a first data object that contains the first data organized in the column-major format;
maintaining a second data object that contains the second data organized in the column-major format;
in response to changes being committed to the first data in the particular data object, invalidating one or more rows of the first data object;
in response to refresh criteria being satisfied relative to the first data object, automatically performing a refresh operation on the first data object independent of any refresh operation on the second data object;
in response to changes being committed to the second data in the particular data object, invalidating one or more rows of the second data object; and
in response to refresh criteria being satisfied relative to the second data object, automatically performing a refresh operation on the second data object independent of any refresh operation on the first data object.

### Claim 2 (depends on 1)

The method of claim 1, wherein a single set of journal extents is used to maintain an indication of which rows are invalid for both the first data object and the second data object.

### Claim 3 (depends on 1)

The method of claim 1, wherein maintaining the particular data object comprises maintaining the particular data object formatted in row-major format in a persistent storage, and wherein maintaining the first data object comprises maintaining the first data object in a volatile memory.

### Claim 4 (depends on 1)

The method of claim 1, wherein the particular data object comprises at least one of a table, a table partition, a table sub-partition, one or more segments, a set of segments, one or more extents, a set of extents, a set of block of data, one or more columns of a table, one or more on-disk extents, or a set of data.

### Claim 5 (depends on 1)

The method of claim 1, wherein automatically performing the refresh operation on the first data object comprises automatically performing the refresh operation on the first data object in response to a number of invalidated rows of the first data object exceeding an invalidated row count threshold.

### Claim 6 (depends on 1)

The method of claim 1, wherein automatically performing the refresh operation on the first data object comprises automatically performing the refresh operation on the first data object in response to a number of invalidated rows of the first data object exceeding a percentage threshold.

### Claim 7 (depends on 1)

The method of claim 1, wherein automatically performing the refresh operation on the first data object comprises automatically performing the refresh operation on the first data object in response to a number of new rows within a block range of the first data object added to the particular data object after creation of the first data object exceeding a new row count threshold.

### Claim 8 (depends on 1)

The method of claim 1, wherein automatically performing the refresh operation on the first data object comprises automatically creating a replacement data object for the first data object, the replacement data object containing a more current version of the first data than a version of the first data contained in the first data object, the first data in the replacement data object organized in the column-major format, and further comprising deleting the first data object after automatically creating the replacement data object.

### Claim 9 (depends on 1)

The method of claim 1, wherein automatically performing the refresh operation on the first data object comprises automatically creating a replacement data object for the first data object using the first data included in the first data object and at least one of the particular data or a journal associated with the first data object, the journal including a record of each change to one or more portions of the first data after creation of the first data object, each change to the one or more portions of the first data mirroring each respective change to corresponding one or more portions of the particular data.

### Claim 10 (depends on 1)

The method of claim 1, wherein automatically performing the refresh operation on the first data object comprises automatically creating a replacement data object for the first data object using the particular data or a journal associated with the first data object, the journal including a record of each change to one or more portions of the first data after creation of the first data object, each change to the one or more portions of the first data mirroring each respective change to corresponding one or more portions of the particular data.

### Claim 11 (depends on 1)

The method of claim 1, wherein a record file is associated with the first data object and the second data object, the record file including a record of changes to one or more portions of the first data after creation of the first data object and changes to one or more portions of the second data after creation of the second data object, the changes to the one or more portions of the first and second data mirroring each respective change to corresponding one or more portions of the first and second data in the particular data object.

### Claim 12 (depends on 1)

The method of claim 1, wherein the refresh operation comprises one or more background processes of a database server having access to the particular data object, first data object, and second data object.

### Claim 13

One or more non-transitory storage media storing instructions which, when executed by one or more processors, cause:
maintaining a particular data object that contains particular data formatted different from column-major format, wherein the particular data includes first data and second data;
maintaining a first data object that contains the first data organized in the column-major format;
maintaining a second data object that contains the second data organized in the column-major format;
in response to changes being committed to the first data in the particular data object, invalidating one or more rows of the first data object;
in response to refresh criteria being satisfied relative to the first data object, automatically performing a refresh operation on the first data object independent of any refresh operation on the second data object;
in response to changes being committed to the second data in the particular data object, invalidating one or more rows of the second data object; and
in response to refresh criteria being satisfied relative to the second data object, automatically performing a refresh operation on the second data object independent of any refresh operation on the first data object.

### Claim 14 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein a single set of journal extents is used to maintain an indication of which rows are invalid for both the first data object and the second data object.

### Claim 15 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein maintaining the particular data object comprises maintaining the particular data object formatted in row-major format in a persistent storage, and wherein maintaining the first data object comprises maintaining the first data object in a volatile memory.

### Claim 16 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein the particular data object comprises at least one of a table, a table partition, a table sub-partition, one or more segments, a set of segments, one or more extents, a set of extents, a set of block of data, one or more columns of a table, one or more on-disk extents, or a set of data.

### Claim 17 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein automatically performing the refresh operation on the first data object comprises automatically performing the refresh operation on the first data object in response to a number of invalidated rows of the first data object exceeding an invalidated row count threshold.

### Claim 18 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein automatically performing the refresh operation on the first data object comprises automatically performing the refresh operation on the first data object in response to a number of invalidated rows of the first data object exceeding a percentage threshold.

### Claim 19 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein automatically performing the refresh operation on the first data object comprises automatically performing the refresh operation on the first data object in response to a number of new rows within a block range of the first data object added to the particular data object after creation of the first data object exceeding a new row count threshold.

### Claim 20 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein automatically performing the refresh operation on the first data object comprises automatically creating a replacement data object for the first data object, the replacement data object containing a more current version of the first data than a version of the first data contained in the first data object, the first data in the replacement data object organized in the column-major format, and further comprising deleting the first data object after automatically creating the replacement data object.

### Claim 21 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein automatically performing the refresh operation on the first data object comprises automatically creating a replacement data object for the first data object using the first data included in the first data object and at least one of the particular data or a journal associated with the first data object, the journal including a record of each change to one or more portions of the first data after creation of the first data object, each change to the one or more portions of the first data mirroring each respective change to corresponding one or more portions of the particular data.

### Claim 22 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein automatically performing the refresh operation on the first data object comprises automatically creating a replacement data object for the first data object using the particular data or a journal associated with the first data object, the journal including a record of each change to one or more portions of the first data after creation of the first data object, each change to the one or more portions of the first data mirroring each respective change to corresponding one or more portions of the particular data.

### Claim 23 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein a record file is associated with the first data object and the second data object, the record file including a record of changes to one or more portions of the first data after creation of the first data object and changes to one or more portions of the second data after creation of the second data object, the changes to the one or more portions of the first and second data mirroring each respective change to corresponding one or more portions of the first and second data in the particular data object.

### Claim 24 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein the refresh operation comprises one or more background processes of a database server having access to the particular data object, first data object, and second data object.

### Claim 25 (depends on 1)

The method of claim 1, wherein the refresh criteria is satisfied relative to the first data object when a number of invalid rows of the first data object exceeds a threshold.

### Claim 26 (depends on 13)

The one or more non-transitory storage media of claim 13, wherein the refresh criteria is satisfied relative to the first data object when a number of invalid rows of the first data object exceeds a threshold.
