Method and apparatus for viewing the effect of changes to an index for a database table on an optimization plan for a database query
First Claim
1. In a database management system, a method for viewing changes to an original optimization plan for a query having a reference to an original table with data stored in a database, the method comprising:
- copying the original table excluding the data to define a virtual table;
providing a virtual index associated with the virtual table;
replacing, in the query, the reference to the original table with a reference to the virtual table;
adding, to the query, a reference to the virtual index; and
determining a new optimization plan for the query.
4 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus for viewing the effect of changes to an index for a database table on an optimization plan for a database query, such as an SQL statement. A virtual table is created which mimics the structure of an original table on the database. The virtual table is created by copying the original table, excluding any data in the original table. Any existing original indexes associated with original table are copied to define a virtual index associated with the virtual table. References in the query to the original table are replaced with references to the virtual table. The database management system then determines a new optimization plan for the query.
38 Citations
9 Claims
-
1. In a database management system, a method for viewing changes to an original optimization plan for a query having a reference to an original table with data stored in a database, the method comprising:
-
copying the original table excluding the data to define a virtual table;
providing a virtual index associated with the virtual table;
replacing, in the query, the reference to the original table with a reference to the virtual table;
adding, to the query, a reference to the virtual index; and
determining a new optimization plan for the query. - View Dependent Claims (2, 3)
-
-
4. In a database management system, a method for viewing changes to an original optimization plan for a query having:
- (i) a reference to an original table with data stored in a database, and (ii) a reference to an original index associated with the original table, the method comprising;
copying the original table excluding the data to define a virtual table;
changing the original index to define a virtual index associated with the virtual table; and
determining a new optimization plan for the query. - View Dependent Claims (5, 6)
- (i) a reference to an original table with data stored in a database, and (ii) a reference to an original index associated with the original table, the method comprising;
-
7. In a database management system, a method for viewing changes to an original optimization plan for a query having:
- (i) a reference to an original table with data stored in a database, and (ii) a reference to an original index associated with the original table, the method comprising;
copying the original table excluding the data to define a virtual table;
replacing, in the query, the reference to the original table with a reference to the virtual table;
deleting, from the query, the reference to the virtual table; and
determining a new optimization plan for the query. - View Dependent Claims (8, 9)
- (i) a reference to an original table with data stored in a database, and (ii) a reference to an original index associated with the original table, the method comprising;
Specification