{"pub_number":"US12373430B2","doc_number":"12373430","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Methods and systems for determining regression of a database query","abstract_text":"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.","claims":[{"number":1,"text":"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","independent":true},{"number":2,"text":"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.","independent":false,"depends_on":[1]},{"number":3,"text":"The computer-implemented method of claim 2, wherein the sorting is based on the first and third performance measures.","independent":false,"depends_on":[2]},{"number":4,"text":"The computer-implemented method of claim 1, wherein the first and second performance measures include execution time.","independent":false,"depends_on":[1]},{"number":5,"text":"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.","independent":false,"depends_on":[4]},{"number":6,"text":"The computer-implemented method of claim 1, wherein receiving the first performance measure is based on an automatic workload repository snapshot.","independent":false,"depends_on":[1]},{"number":7,"text":"The computer-implemented method of claim 1, wherein the method is executed periodically by the computer system.","independent":false,"depends_on":[1]},{"number":8,"text":"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.","independent":false,"depends_on":[7]}],"description":"RELATED APPLICATION(S)\nThis 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.\nTECHNICAL FIELD\nThis application relates generally to database systems, and more particularly to methods of determining regression of a database query executed by a database system.\nBACKGROUND\nDatabases 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.\nSUMMARY\nThe 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","inventors":[{"name":"Deepak Bhaskaran","slug":"deepak-bhaskaran","city":"Cary","country":"US"},{"name":"Mark Rogers","slug":"mark-rogers","city":"Manchester","country":"US"},{"name":"Harini Varadarajan","slug":"harini-varadarajan","city":"Apex","country":"US"},{"name":"Shiv Shankar Kumar","slug":"shiv-shankar-kumar","city":"Plano","country":"US"},{"name":"Midhun Gandhi Thiagarajan","slug":"midhun-gandhi-thiagarajan","city":"Cary","country":"US"},{"name":"Swathi Enugula","slug":"swathi-enugula","city":"New Hill","country":"US"}],"assignees":[{"name":"FMR LLC","slug":"fmr-llc","country":"US"}],"examiners":[],"cpc_codes":["G06F 16/24542"],"ipc_codes":["G06F 16/245","G06F 16/2453"],"filing_date":"2024-04-03","pub_date":"2025-07-29","grant_date":"2025-07-29","expiration_date":"2044-04-03","family_members":[],"citations_made":[{"pub_number":"US9262477B1","category":"examiner"},{"pub_number":"US20070050330A1","category":"examiner"},{"pub_number":"US20080256025A1","category":"examiner"},{"pub_number":"US20090077017A1","category":"examiner"},{"pub_number":"US20100114868A1","category":"examiner"},{"pub_number":"US20100306591A1","category":"examiner"},{"pub_number":"US20200134070A1","category":"examiner"},{"pub_number":"US20220027754A1","category":"examiner"},{"pub_number":"US20240126607A1","category":"examiner"},{"pub_number":"WOWO-2021169322A1","category":"examiner"}],"non_patent_literature":[],"drawings_count":0,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":10,"npl_citations":0,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3483928,"pagerank_rank":3483928,"velocity_rank":3483928,"family_citations":0}}