IP Library › Granted Patent US 11,556,538
Granted Patent B2
US 11,556,538 · App. 16/874,822 · Granted Jan 17, 2023

Query plan migration in database systems

Inventors: Youngbin Bok (Seoul, KR); Jaehyok Chong (Seoul, KR); Won Jun Chang (Seoul, KR); Sungguk Lim (Seoul, KR)
Assignee: SAP SE
G06F16/24542G06F11/3409G06F16/217G06F16/2433
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,556,538
App. No.
16/874,822
Granted
Jan 17, 2023
Kind
B2
Abstract

Methods, systems, and computer-readable storage media for receiving, by a current database system, a query plan file representative of a captured query plan from a source database system, receiving, by the current database system, a set of definitions including one or more definitions, each definition in the set of definitions corresponding to an object that is implicated by the query plan, the object being included in a set of objects, and determining, by the current database system, that each definition in the set of definitions is identical to a respective definition of a corresponding object within the current database system, and in response: executing the captured query plan in the current database system to provide a query result.

Claims (43)

1. A computer-implemented method for query plan migration in database systems, the method being executed by one or more processors and comprising:

receiving, by a current database system, a first query plan file representative of a first captured query plan, the first captured query plan having been recorded within a source database system, the current database system having a different software version than the source database system;

receiving, by the current database system, a first set of definitions comprising one or more definitions, each definition in the first set of definitions corresponding to an object that is implicated by the first query plan and comprising a create statement defining a name of the object and features of the object, the object being included in a first set of objects;

comparing at least one metadata value of each object in the first set of objects to respective metadata values of objects in the current database system; and

determining, by the current database system, that each definition in the first set of definitions is identical to a respective definition of a corresponding object within the current database system based on the comparison, and in response:

executing the first captured query plan in the current database system to provide a first query result;

receiving, by the current database system, a second query plan file representative of a second captured query plan from the source database system, the second captured query plan associated with a second set of objects comprising one or more objects, each object in the second set of objects being implicated by the second captured query plan; and

for each object in the second set of objects, determining that a sub-set of metadata corresponds to a sub-set of metadata of an object within the current database system, and in response:

replacing metadata of each object in the second set of objects with metadata of a corresponding object in the current database system, and

executing the second captured query plan in the current database system to provide a second query result.

2. The method of claim 1 , wherein determining, by the current database system, that each definition in the first set of definitions is identical to a respective definition of a corresponding object within the current database system is executed in response to determining that each object in the first set of objects has a corresponding object in the current database system.

3. The method of claim 1 , wherein the first set of definitions is received in response to confirmation input that indicates that metadata of the current database system is different than metadata of the source database system.

4. The method of claim 1 , wherein the sub-set of metadata comprises an object name and an object type.

5. The method of claim 1 , wherein determining that a sub-set of metadata corresponds to a sub-set of metadata of an object within the current database system is executed in response to confirmation input that indicates that metadata of the current database system is identical to metadata of the source database system.

6. A non-transitory computer-readable storage medium coupled to one or more processors and having instructions stored thereon which, when executed by the one or more processors, cause the one or more processors to perform operations for query plan migration in database systems, the operations comprising:

receiving, by a current database system, a first query plan file representative of a first captured query plan, the first captured query plan having been recorded within a source database system, the current database system having a different software version than the source database system;

receiving, by the current database system, a first set of definitions comprising one or more definitions, each definition in the first set of definitions corresponding to an object that is implicated by the first query plan and comprising a create statement defining a name of the object and features of the object, the object being included in a first set of objects;

comparing at least one metadata value of each object in the first set of objects to respective metadata values of objects in the current database system; and

determining, by the current database system, that each definition in the first set of definitions is identical to a respective definition of a corresponding object within the current database system based on the comparison, and in response:

executing the first captured query plan in the current database system to provide a first query result;

receiving, by the current database system, a second query plan file representative of a second captured query plan from the source database system, the second captured query plan associated with a second set of objects comprising one or more objects, each object in the second set of objects being implicated by the second captured query plan; and

for each object in the second set of objects, determining that a sub-set of metadata corresponds to a sub-set of metadata of an object within the current database system, and in response:

replacing metadata of each object in the second set of objects with metadata of a corresponding object in the current database system, and

executing the second captured query plan in the current database system to provide a second query result.

7. The computer-readable storage medium of claim 6 , wherein determining, by the current database system, that each definition in the first set of definitions is identical to a respective definition of a corresponding object within the current database system is executed in response to determining that each object in the first set of objects has a corresponding object in the current database system.

8. The computer-readable storage medium of claim 6 , wherein the first set of definitions is received in response to confirmation input that indicates that metadata of the current database system is different than metadata of the source database system.

9. The computer-readable storage medium of claim 6 , wherein the sub-set of metadata comprises an object name and an object type.

10. The computer-readable storage medium of claim 6 , wherein determining that a sub-set of metadata corresponds to a sub-set of metadata of an object within the current database system is executed in response to confirmation input that indicates that metadata of the current database system is identical to metadata of the source database system.

11. A system, comprising:

a computing device; and

a non-transitory computer-readable storage device coupled to the computing device and having instructions stored thereon which, when executed by the computing device, cause the computing device to perform operations for query plan migration in database systems, the operations comprising:

receiving, by a current database system, a first query plan file representative of a first captured query plan, the first captured query plan having been recorded within a source database system, the current database system having a different software version than the source database system;

receiving, by the current database system, a first set of definitions comprising one or more definitions, each definition in the first set of definitions corresponding to an object that is implicated by the first query plan and comprising a create statement defining a name of the object and features of the object, the object being included in a first set of objects;

comparing at least one metadata value of each object in the first set of objects to respective metadata values of objects in the current database system; and

determining, by the current database system, that each definition in the first set of definitions is identical to a respective definition of a corresponding object within the current database system based on the comparison, and in response:

executing the first captured query plan in the current database system to provide a first query result;

receiving, by the current database system, a second query plan file representative of a second captured query plan from the source database system, the second captured query plan associated with a second set of objects comprising one or more objects, each object in the second set of objects being implicated by the second captured query plan; and

for each object in the second set of objects, determining that a sub-set of metadata corresponds to a sub-set of metadata of an object within the current database system, and in response:

replacing metadata of each object in the second set of objects with metadata of a corresponding object in the current database system, and

executing the second captured query plan in the current database system to provide a second query result.

12. The system of claim 11 , wherein determining, by the current database system, that each definition in the first set of definitions is identical to a respective definition of a corresponding object within the current database system is executed in response to determining that each object in the first set of objects has a corresponding object in the current database system.

13. The system of claim 11 , wherein the first set of definitions is received in response to confirmation input that indicates that metadata of the current database system is different than metadata of the source database system.

14. The system of claim 11 , wherein the sub-set of metadata comprises an object name and an object type.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 15, 2020
From: BOK, YOUNGBIN; CHONG, JAEHYOK; CHANG, WON JUN; LIM, SUNGGUK
To: SAP SE
Reel/Frame 052670/0578 →
Continuity (1)
Related Publication 20210357407A1 · Nov 18, 2021
Cited By (2)
US 12,585,652 US 12,730,811