# US 2024/0193184 A1 · System and method for data pruning via dynamic partition management

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

- Number: US 2024/0193184 A1
- Document ID: US20240193184A1
- Status: Published application
- Kind: A1
- Application number: 18/581,660
- Filed: 2024-02-20
- Published: 2024-06-13
- Earliest claimed: 2021-10-20
- Assignees: BNSF Railway Company
- Applicants: BNSF Railway Company
- Inventors: Robert McKinley Collins, JR.
- Web page: https://patentgrep.com/patent/US20240193184A1

## CPC

- G06F 16/21: Design, administration or maintenance of databases
- G06F 16/278: {Data partitioning, e.g. horizontal or vertical partitioning}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for managing data lifecycles that can provide an adaptable data management system configured to optimize the lifecycles of data and the reliability of databases. The system can provide data management systems with the ability to attach, detach, and drop segments of data based on key partitions of the data objects to optimize database utilization. By including the key partitions to the data objects, the database including the data objects can now perform data management operations based on the key partitions. The system, based on the key partitions, can identify a location of the data object to attach row entries, detach row entries from the existing tables, and delete the detached row entries from the database altogether. The system can operate on any relational database management system.

## Claims

### Claim 1

A system for multi-key partition of data related to a railroad system, comprising:
a memory including a database with a plurality of partitions, tables, or jobs;
a configuration file including or more parameters, instructions, operations, or conditions related to database management; and
a processor operably coupled to the memory and capable of executing machine-readable instructions to perform program steps, the program steps comprising:
receiving a multi-key verification instruction to execute a multi-key partition function to parse data based on a partition;
executing a multi-key initialization based on the partition;
receiving a member list of data clusters in the database;
identifying whether a cluster in the database includes a multi-key partition;
determining a definition for an optional input parameter;
determining a single key range for each single key partition;
determining a construction of a multi-key pattern for the partition;
generating alter statements to add partitions; and
generating alter statements for table manipulation corresponding with the partition use.

### Claim 2 (depends on 1)

The system of claim 1, wherein a multi-key partition includes a plurality of single key patterns.

### Claim 3 (depends on 2)

The system of claim 2, wherein the single key pattern includes a date, date range, group value, or member value.

### Claim 4 (depends on 3)

The system of claim 3, wherein the member value includes a date range for the data, such as a year, month, week, day, hour, or other measurement of time.

### Claim 5 (depends on 1)

The system of claim 1, the program steps further comprising comparing the identification of the cluster in the database with the single key partition to determine whether the cluster includes the multi-key partition.

### Claim 6 (depends on 1)

The system of claim 1, the program steps further comprising identifying whether an input request includes the optional input parameter.

### Claim 7 (depends on 5)

The system of claim 5, wherein the optional input parameter identifies whether the size of the data corresponding to the single key partition is greater than a normal size of a table in the database.

### Claim 8 (depends on 1)

The system of claim 1, the program steps further comprising generating a loop to perform partition name and tablespace assignments when partitioning data uses a cluster database.

### Claim 9 (depends on 1)

The system of claim 1, the program steps further comprising obtaining information regarding the number of jobs to be executed, the number of tablespaces to delete, or the number of jobs yet to be executed, and execute instructions corresponding to the foregoing information.

### Claim 10 (depends on 1)

The system of claim 1, the program steps further comprising generating executable documents including the alter statements for use in another system.

### Claim 11

A method of multi-key partition of data related to a railroad system, comprising:
receiving a multi-key verification instruction to execute a multi-key partition function to parse data based on a partition;
executing a multi-key initialization based on the partition;
receiving a member list of data clusters in the database;
identifying whether a cluster in the database includes a multi-key partition;
determining a definition for an optional input parameter;
determining a single key range for each single key partition;
determining a construction of a multi-key pattern for the partition;
generating alter statements to add partitions; and
generating alter statements for table manipulation corresponding with the partition use.

### Claim 12 (depends on 11)

The method of claim 11, wherein a multi-key partition includes a plurality of single key patterns.

### Claim 13 (depends on 12)

The method of claim 12, wherein the single key pattern includes a date, date range, group value, or member value.

### Claim 14 (depends on 13)

The method of claim 13, wherein the member value includes a date range for the data, such as a year, month, week, day, hour, or other measurement of time.

### Claim 15 (depends on 11)

The method of claim 11, further comprising comparing the identification of the cluster in the database with the single key partition to determine whether the cluster includes the multi-key partition.

### Claim 16 (depends on 11)

The method of claim 11, further comprising identifying whether an input request includes the optional input parameter.

### Claim 17 (depends on 16)

The method of claim 16, wherein the optional input parameter identifies whether the size of the data corresponding to the single key partition is greater than a normal size of a table in the database.

### Claim 18 (depends on 11)

The method of claim 11, further comprising generating a loop to perform partition name and tablespace assignments when partitioning data uses a cluster database.

### Claim 19 (depends on 11)

The method of claim 11, further comprising obtaining information regarding the number of jobs to be executed, the number of tablespaces to delete, or the number of jobs yet to be executed, and execute instructions corresponding to the foregoing information.

### Claim 20 (depends on 11)

The method of claim 11, further comprising generating executable documents including the alter statements for use in another system.
