# US 2023/0065855 A1 · Dynamical database system resource balance

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

- Number: US 2023/0065855 A1
- Document ID: US20230065855A1
- Status: Published application
- Kind: A1
- Application number: 17/412,389
- Filed: 2021-08-26
- Published: 2023-03-02
- Earliest claimed: 2021-08-26
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Shuo Li; Xiaobo Wang; Meng Wan; Sheng Yan Sun
- Web page: https://patentgrep.com/patent/US20230065855A1

## CPC

- G06F 16/24549: {Run-time optimisation}
- 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 16/2228: {Indexing structures}
- G06F 16/24: Querying
- G06F 16/2423: {Interactive query statement specification based on a database schema}
- G06F 16/2445: {Data retrieval commands; View definitions}
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06N 20/00: Machine learning
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

An approach is provided in which the approach segments each one of multiple components corresponding to multiple component levels in an SQL database system into multiple functions. The approach combines a first one of the multiple functions with a second one of the multiple functions into an image, and invokes the image to process an SQL query using the first function and the second function.

## Claims

### Claim 1

A computer-implemented method comprising:
segmenting each one of a plurality of components in an SQL database system into a plurality of functions, wherein each one of the plurality of components corresponds to one of a plurality of component levels in the SQL database system;
combining, into an image, a first one of the plurality of functions with a second one of the plurality of functions; and
invoking the image to process an SQL query using the first function and the second function.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
identifying a first set of the plurality of functions segmented from a first one of the plurality components corresponding to a first one of the plurality of component levels;
selecting the first function from the first set of functions;
identifying a second set of the plurality of functions segmented from a second one of the plurality components corresponding to a second one of the plurality of component levels; and
selecting the second function from the second set of functions.

### Claim 3 (depends on 2)

The method of claim 2 further comprising:
asynchronously loading the first function and the second function without loading the first component and the second component; and
independently utilizing the first function and the second function to process the SQL query.

### Claim 4 (depends on 1)

The method of claim 1 further comprising:
creating a different image from a third one of the plurality of functions;
combining the image with the different image to generate a bundled image; and
invoking the bundled image to process the SQL query using the first function, the second function, and the third function.

### Claim 5 (depends on 4)

The method of claim 4 further comprising:
in response to analyzing a set of workload patterns corresponding to one or more historical SQL queries:
creating the bundled image that comprises the first image and the different image; and
creating a different bundled image that comprises a third image and a fourth image, wherein the third image comprises at least one of the plurality of functions and the fourth image comprises at least one of the plurality of functions.

### Claim 6 (depends on 1)

The method of claim 1 further comprising:
creating a Docker container instance from the image; and
running the Docker container instance to process the SQL query.

### Claim 7 (depends on 1)

The method of claim 1 wherein at least one of the plurality of components is selected from the group consisting of a parser component, a query transformation component, an access path selection component, a runtime execution component, an index manager component, a data manager component, and a buffer manager component.

### Claim 8

An information handling system comprising:
one or more processors;
a memory coupled to at least one of the processors;
a set of computer program instructions stored in the memory and executed by at least one of the processors in order to perform actions of:
segmenting each one of a plurality of components in an SQL database system into a plurality of functions, wherein each one of the plurality of components corresponds to one of a plurality of component levels in the SQL database system;
combining, into an image, a first one of the plurality of functions with a second one of the plurality of functions; and
invoking the image to process an SQL query using the first function and the second function.

### Claim 9 (depends on 8)

The information handling system of claim 8 wherein the processors perform additional actions comprising:
identifying a first set of the plurality of functions segmented from a first one of the plurality components corresponding to a first one of the plurality of component levels;
selecting the first function from the first set of functions;
identifying a second set of the plurality of functions segmented from a second one of the plurality components corresponding to a second one of the plurality of component levels; and
selecting the second function from the second set of functions.

### Claim 10 (depends on 9)

The information handling system of claim 9 wherein the processors perform additional actions comprising:
asynchronously loading the first function and the second function without loading the first component and the second component; and
independently utilizing the first function and the second function to process the SQL query.

### Claim 11 (depends on 8)

The information handling system of claim 8 wherein the processors perform additional actions comprising:
creating a different image from a third one of the plurality of functions;
combining the image with the different image to generate a bundled image; and
invoking the bundled image to process the SQL query using the first function, the second function, and the third function.

### Claim 12 (depends on 11)

The information handling system of claim 11 wherein the processors perform additional actions comprising:
in response to analyzing a set of workload patterns corresponding to one or more historical SQL queries:
creating the bundled image that comprises the first image and the different image; and
creating a different bundled image that comprises a third image and a fourth image, wherein the third image comprises at least one of the plurality of functions and the fourth image comprises at least one of the plurality of functions.

### Claim 13 (depends on 8)

The information handling system of claim 8 wherein the processors perform additional actions comprising:
creating a Docker container instance from the image; and
running the Docker container instance to process the SQL query.

### Claim 14 (depends on 8)

The information handling system of claim 8 wherein at least one of the plurality of components is selected from the group consisting of a parser component, a query transformation component, an access path selection component, a runtime execution component, an index manager component, a data manager component, and a buffer manager component.

### Claim 15

A computer program product stored in a computer readable storage medium, comprising computer program code that, when executed by an information handling system, causes the information handling system to perform actions comprising:
segmenting each one of a plurality of components in an SQL database system into a plurality of functions, wherein each one of the plurality of components corresponds to one of a plurality of component levels in the SQL database system;
combining, into an image, a first one of the plurality of functions with a second one of the plurality of functions; and
invoking the image to process an SQL query using the first function and the second function.

### Claim 16 (depends on 15)

The computer program product of claim 15 wherein the information handling system performs further actions comprising:
identifying a first set of the plurality of functions segmented from a first one of the plurality components corresponding to a first one of the plurality of component levels;
selecting the first function from the first set of functions;
identifying a second set of the plurality of functions segmented from a second one of the plurality components corresponding to a second one of the plurality of component levels; and
selecting the second function from the second set of functions.

### Claim 17 (depends on 16)

The computer program product of claim 16 wherein the information handling system performs further actions comprising:
asynchronously loading the first function and the second function without loading the first component and the second component; and
independently utilizing the first function and the second function to process the SQL query.

### Claim 18 (depends on 15)

The computer program product of claim 15 wherein the information handling system performs further actions comprising:
creating a different image from a third one of the plurality of functions;
combining the image with the different image to generate a bundled image; and
invoking the bundled image to process the SQL query using the first function, the second function, and the third function.

### Claim 19 (depends on 18)

The computer program product of claim 18 wherein the information handling system performs further actions comprising:
in response to analyzing a set of workload patterns corresponding to one or more historical SQL queries:
creating the bundled image that comprises the first image and the different image; and
creating a different bundled image that comprises a third image and a fourth image, wherein the third image comprises at least one of the plurality of functions and the fourth image comprises at least one of the plurality of functions.

### Claim 20 (depends on 15)

The computer program product of claim 15 wherein the information handling system performs further actions comprising:
creating a Docker container instance from the image; and
running the Docker container instance to process the SQL query.
