hottub.patents
US 12,339,846 B2#3513647 Most CitedActiveUnited States (USPTO)Utility

Estimator of resource consumption by query execution plan steps

0Forward Citations (#3513647 Global)
0.0/yrCitation Velocity (#3513647 Global)
0.00Citation PageRank (#3513647 Global)
3Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

A method, apparatus and computer program product for estimating resource consumption for steps in a query execution plan for a query performed by a relational database management system (RDBMS) in a computer system. Past execution data for the steps are used to train a machine learning (ML) model and its model parameters to predict execution times for the steps. A prediction module comprised of the ML model configured by the model parameters predicts an execution time for a current step of the query execution plan for the query, based on current step information and current system load. A boosting module boosts the current step either up or down for processing by the RDBMS to meet a service level goal (SLG) for the query, based on the predicted execution time for the current step, as well as an elapsed query time, a query SLG time, and/or a query CPU time.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 3 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A computer-implemented method for estimating resource consumption by query execution plan steps, comprising: executing a relational database management system (RDBMS) in a computer system, wherein the RDBMS processes a query to access a relational database comprised of one or more tables stored on one or more data storage devices connected to the computer system; executing a prediction module in the computer system, wherein the prediction module selects a machine learning model from different machine learning models using a current step information or a current system load to select among different model parameters, each of the different machine learning models configured by the different model parameters for predicting an execution time for a current step of a query execution plan for the query based on the current step information or the current system load; and executing a boosting module in the computer system, wherein the boosting module boosts the current step either up or down f

  2. Claim 2Depends on #1

    The method of claim 1, wherein past execution data for steps of query execution plans are used to train the machine learning model and its model parameters for predicting the execution times for the steps.

  3. Claim 3Depends on #1

    The method of claim 1, wherein the elapsed query time is an amount of time spent in processing the query execution plan.

  4. Claim 4Depends on #1

    The method of claim 1, wherein the query SLG time is an amount of time allocated for processing the query execution plan to meet the SLG for the query.

  5. Claim 5Depends on #4

    The method of claim 4, wherein the query SLG time is apportioned for each step of the query execution plan.

  6. Claim 6Depends on #1

    The method of claim 1, wherein the query CPU time is an amount of CPU time allocated for processing the query execution plan to meet the SLG for the query.

  7. Claim 7Depends on #6

    The method of claim 6, wherein the query CPU time is apportioned for each step of the query execution plan.

  8. Claim 8Depends on #1

    The method of claim 1, wherein the boosting module compares the predicted execution time for the current step to the elapsed query time, the query SLG time, and/or the query CPU time, to determine a direction and an extent of the boost for the current step.

Technical Overview & Description

BACKGROUND OF THE INVENTION 1. Field of the Invention This invention relates to methods and systems for estimating resource consumption by query execution plan steps. 2. Description of Related Art The time taken for a relational database management system (RDBMS) to execute a query depends on many factors, including, but not limited to, the complexity of the query, the number of tables referenced by the query, the number of steps in the query, the type of join operators planned by the optimizer, the selectivity of the rows from left and right sides of the join operators, the aggregations used, the indexes available on the tables, etc. In addition, the current load conditions of the system on which the query is executed also impacts the execution time. There may be other factors, including the unavailability of resources due to locks and other processes getting spawned, finishing of other queries etc. Due to these factors, it is difficult to estimate the execution time of a query. Estimating the execution time of a query is an important factor in meeting a service level goal (SLG) for the query. Thus, there is a need in the art for improved methods and systems for predicting that a specific query may take a longer execution time than the SLG, and for boosting the resources necessary to ensure that the query can run faster, thereby minimizing any SLG failures. The present invention satisfies this need. SUMMARY OF THE INVENTION To overcome the limitations in the prior art described above, and to overcome other limitations that will become apparent upon reading and understanding this specification, the present invention discloses a method, apparatus and computer program product for estimating resource consumption of steps in a query execution plan for a query performed by an RDBMS in a computer system. Past execution data for the steps are used to train a machine learning (ML) model and its model parameters to predict execution times for the steps. A prediction module c

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (3)

PatentTitleYearCitations

Non-Patent Literature (2)

  • Patel, Fundamental concepts for Model Selection and Model Evaluation Part 1, pp. 1-16, May 3 (Year: 2020).
  • Nagarajah, A Review on Automated Machine Learning (AutoML) Systems, pp. 1-6 (Year: 2019).