# US 2022/0284035 A1 · Machine learning based application of changes in a target database system

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

- Number: US 2022/0284035 A1
- Document ID: US20220284035A1
- Status: Published application
- Kind: A1
- Application number: 17/192,913
- Filed: 2021-03-05
- Published: 2022-09-08
- Earliest claimed: 2021-03-05
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Dennis Butterstein; Adnan Ahmad; Jéssica Costa da Rocha; Samy Tafasca; Vassil Radkov Dimov; Zeyuan Zhang
- Web page: https://patentgrep.com/patent/US20220284035A1

## CPC

- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06F 11/1471: involving logging of persistent data for recovery
- G06F 11/3414: {Workload generation, e.g. scripts, playback}
- G06F 11/3419: {by assessing time}
- G06F 11/3433: {for load management (allocation of a server based on load conditions G06F9/505; load rebalancing G06F9/5083; redistributing the load in a network by a load balancer H04L67/1029)}
- G06F 11/3447: {Performance evaluation by modeling}
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 16/2282: {Tablespace storage structures; Management thereof}
- G06F 16/235: {Update request formulation}
- G06F 16/2386: {Bulk updating operations (data conversion details G06F16/258)}
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/00: Machine learning
- G06N 20/20: Ensemble learning
- G06F 2201/86: Event-based monitoring
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present disclosure relates to a computer implemented method for applying changes into tables of a target database system using a data synchronization system, the data synchronization system being configured to automatically use at least one configurable parameter for applying a requested change in the target database system. The method provides a trained machine learning model, the machine learning model being configured to adjust the at least one configurable parameter based on a workload level. The method determines a current workload level at the target database system and uses the machine learning model for adjusting the at least one configurable parameter according to the determined workload level.

## Claims

### Claim 1

A computer implemented method for applying changes into tables of a target database system using a data synchronization system, the data synchronization system being configured to automatically use at least one configurable parameter for applying a requested change in the target database system, the method comprising:
providing a machine learning model, the machine learning model being configured to adjust the at least one configurable parameter based on a workload level, wherein the machine learning model employs Q-learning algorithm with a Q-table, wherein the Q-table is updated using bellman equation;
determining a current workload level at the target database system;
using the machine learning model for adjusting the at least one configurable parameter according to the determined workload level;
determining a current state of the target database system, wherein the current state of the target database system is selected from a group consisting of number of records inserted in a table, number of records updated in the table, number of records deleted from the table, type of attribute values of the table, and length of columns of the table; and
inputting the current state to the machine leaning model for adjusting the configurable parameter.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
repeatedly performing the determining step and the adjusting step on a time periodic basis.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
determining using change history event data whether a change related event has occurred in the target database system; and
based on determining the change related event occurred, repeating the determining step and the adjusting step.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
receiving a data change request for applying a change to the table of the target database system;
determining a size of the requested change;
selecting by the data synchronization system an application algorithm of multiple predefined application algorithms by comparing the determined size with the adjusted configurable parameter; and
applying the requested change using the selected application algorithm.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
receiving another data change request for applying a change to the table;
determining using change history event data whether a change related event has occurred in the target database system;
based on determining the change related event occurred, repeating for the other change the determination of the size and the adjustment of the configurable parameter for providing a readjustment of the configurable parameter; and
applying the other change using the readjusted configurable parameter in case the change related event occurred, otherwise applying the other change using the previously adjusted configurable parameter.

### Claim 6 (depends on 4)

The method of claim 4, further comprising:
receiving another data change request for applying a change to the table;
based on determining the other data change request indicates a change in the structure of the table, repeating for the other change the determination of the size and the adjustment of the configurable parameter for providing a readjustment of the configurable parameter;
applying the other change using the readjusted configurable parameter based on determining the data change request indicates a change in the structure of the table; and
based on determining the data change request does not indicate the change in the structure of the table, applying the other change using previously adjusted configurable parameter.

### Claim 7 (depends on 1)

The method of claim 1, wherein each table of the target database system is associated with a respective configurable parameter, wherein the machine learning model is configured for adjusting the configurable parameter of each table.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
determining the current state of the target database system, wherein the current state being further defined by the current workload level and associated current latency level; and
inputting the current state to the machine leaning model for adjusting the configurable parameter.

### Claim 9 (depends on 1)

The method of claim 1, wherein the workload level is defined by at least one of: a number of records inserted in the table, a number of records updated in the table, a number of records deleted from the table, type of attribute values of the table, and length of the columns of the table.

### Claim 10 (depends on 1)

The method of claim 1, wherein the machine learning model is trained using reinforcement learning algorithm, wherein a state space is the representation of the current workload level and a current latency level, wherein an action space is an adjustment of the configurable parameter, and wherein a reward function is based on a difference in latency between the previous state and the current state after taking an action.

### Claim 11

(canceled)

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
employing a safety switch, wherein the safety switch being configured to:
assess the performance of data replication into the target database system using the adjustment suggested by the machine learning model and the performance of data replication into the target database system using a default adjustment of the configurable parameter;
compare the performances to determine a comparison result; and
based on the comparison result above a threshold, using the default adjustment of the configurable parameter.

### Claim 13 (depends on 12)

The method of claim 12, wherein the determination of the performance with the default adjustment is performed using a second machine learning model, wherein the second machine learning model being configured to receive as input a workload level and to predict the performance associated with the input workload level.

### Claim 14 (depends on 12)

The method of claim 12, wherein the performance is defined by any one of: execution time and memory usage.

### Claim 15 (depends on 4)

The method of claim 4, further comprising:
providing a source table associated with the table in a source database system, wherein the source and target database systems are configured to synchronize data between each other; and
replicating the data change, wherein the data change request is received in response to said data change being applied to the source table.

### Claim 16

A computer program product comprising:
a computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code configured to implement the method comprising:
providing a machine learning model, the machine learning model being configured to adjust the at least one configurable parameter based on a workload level, wherein the machine learning model employs Q-learning algorithm with a Q-table, wherein the Q-table is updated using bellman equation;
determining a current workload level at the target database system;
using the machine learning model for adjusting the at least one configurable parameter according to the determined workload level;
determining a current state of the target database system, wherein the current state of the target database system is selected from a group consisting of number of records inserted in a table, number of records updated in the table, number of records deleted from the table, type of attribute values of the table, and length of columns of the table; and
inputting the current state to the machine leaning model for adjusting the configurable parameter.

### Claim 17 (depends on 16)

The computer program product of claim 16, further comprising:
repeatedly performing the determining step and the adjusting step on a time periodic basis.

### Claim 18 (depends on 16)

The computer program product of claim 16, further comprising:
determining using change history event data whether a change related event has occurred in the target database system; and
based on determining the change related event occurred, repeating the determining step and the adjusting step.

### Claim 19

A computer system for applying changes into tables of a target database system using a data synchronization system, the data synchronization system being configured to automatically use at least one configurable parameter for applying a requested change in the target database system, the computer system being configured for:
providing a machine learning model, the machine learning model being configured to adjust the at least one configurable parameter based on a workload level, wherein the machine learning model employs Q-learning algorithm with a Q-table, wherein the Q-table is updated using bellman equation;
determining a current workload level at the target database system;
using the machine learning model for adjusting the at least one configurable parameter according to the determined workload level;
determining a current state of the target database system, wherein the current state of the target database system is selected from a group consisting of number of records inserted in a table, number of records updated in the table, number of records deleted from the table, type of attribute values of the table, and length of columns of the table; and
inputting the current state to the machine leaning model for adjusting the configurable parameter.

### Claim 20 (depends on 19)

The computer system of claim 19, further comprising:
repeatedly performing the determining step and the adjusting step on a time periodic basis.
