hottub.patents
US 12,373,430 B2#3483928 Most CitedActiveUnited States (USPTO)Utility

Methods and systems for determining regression of a database query

0Forward Citations (#3483928 Global)
0.0/yrCitation Velocity (#3483928 Global)
0.00Citation PageRank (#3483928 Global)
10Prior Art Cited
8Claims (1 Indep. · 7 Dep.)
0Drawings / Sheets

Abstract

A method for determining regression of a database query associated with a first execution plan includes receiving a first performance measure for the database query and the first execution plan; determining a presence of at least one stored performance measure for the database query in a data repository; adding the first performance measure and identifiers for the database query and the first execution plan to a synchronization list; retrieving a second performance measure associated with a second execution plan from the data repository; determining a regression of the database query by comparing the first performance measure to the second performance measure; in response to a determination that the database query is regressed, adding the first performance measure, the second performance measure, and identifiers for the database query and the first execution plan to a regression report.

Interactive Citation Constellation Global Citation Ranking

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

Claims (8 — 1 Independent, 7 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method for determining regression of a database query associated with a first execution plan, using a computer system coupled to a data repository, the method comprising: receiving, by the computer system, a first performance measure for the database query and the first execution plan; determining, by the computer system, a presence of at least one stored performance measure for the database query in the data repository; in response to a determination that the at least one stored performance measure for the database query is for a different execution plan than the first execution plan: adding, by the computer system, the first performance measure and identifiers for the database query and the first execution plan to a synchronization list, retrieving, by the computer system, a repository list including identifiers for one or more third execution plans and third performance measures associated with the database query from the data repository, and adding, by the co

  2. Claim 2Depends on #1

    The computer-implemented method of claim 1, further comprising, for each database query, associated first execution plan, and associated first performance measure in the synchronization list: sorting, by the computer system, the repository list after adding the identifier for the first execution plan and the first performance measure from the synchronization list; and storing, by the computer system, the sorted repository list in the data repository.

  3. Claim 3Depends on #2

    The computer-implemented method of claim 2, wherein the sorting is based on the first and third performance measures.

  4. Claim 4Depends on #1

    The computer-implemented method of claim 1, wherein the first and second performance measures include execution time.

  5. Claim 5Depends on #4

    The computer-implemented method of claim 4, wherein the second performance measure includes the shortest execution time of all performance measures associated with the database query in the data repository.

  6. Claim 6Depends on #1

    The computer-implemented method of claim 1, wherein receiving the first performance measure is based on an automatic workload repository snapshot.

  7. Claim 7Depends on #1

    The computer-implemented method of claim 1, wherein the method is executed periodically by the computer system.

  8. Claim 8Depends on #7

    The computer-implemented method of claim 7, wherein the first performance measure is associated with a time period since a previous execution of the method.

Technical Overview & Description

RELATED APPLICATION(S) This application claims priority to U.S. Provisional Patent Application No. 63/539,411, filed on Sep. 20, 2023, the entirety of which is incorporated herein by reference. TECHNICAL FIELD This application relates generally to database systems, and more particularly to methods of determining regression of a database query executed by a database system. BACKGROUND Databases managed by database management systems are often queried using the Structured Query Language (SQL). To execute a SQL query, the database management system or database system often generates an execution plan for the query. An execution plan is a set of low-level instructions defining how to execute the query associated with it. The execution plan is generated by the database system based on a variety of factors, such as database statistics, a query process tree, the tables, rows, and columns accessed, and/or other constraints given to the database system. However, the database system may generate an execution plan that is not fast or not convenient and leads to slower response times and/or regression of the associated query. Current database management systems do not monitor or check for query regression. Therefore, such regression may not be noticed until it impacts a customer that interacts with the data provided by that query. SUMMARY The deficiencies of the prior art described above are overcome by providing a system and method that enables determining regression of a database query based on monitoring metrics for that query. In accordance with an embodiment of the present invention, a computer-implemented method for determining regression of a database query associated with a first execution plan, using a computer system coupled to a data repository, includes receiving, by the computer system, a first performance measure for the database query and the first execution plan. The method includes determining, by the computer system, a presence of at least one stored performan

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 (10)

PatentTitleYearCitations