Method and apparatus for viewing the effect of changes to an index for a database table on an optimization plan for a database query
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 23 · Forward citations: 15.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
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.
- Claim 2Depends on #1
The method of claim 1 , further comprising comparing the new optimization plan with the original optimization plan.
- Claim 3Depends on #2
The method of claim 2 , further comprising, before comparing the new and the original optimization plans: replacing, in the new optimization plan, the reference to the virtual table
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (23)
Non-Patent Literature (5)
- Bhargava, et al., "Hypergraph based reorderings of outer join queries with complex predicates" Proceedings of the 1995 ACM SIGMOD International Conference on Management of Data, San Jose, California, USA, SIGMOD Record vol. 24, Issue 2, Jun. 1995, pp. 304-315.
- Chamberlin, "Query Power: Subqueries in DB2 V2" (04/96), Database Programming & Design, pp. 45-50.
- Chaudhuri, Surajit, (1998), AutoAdmin "What-If" Index Analysis Utility, Sigmod Record, vol. 27 (2), pp: 367-378.
- Chen, et al. "On Applying Hash Filters To Improving The Execution of Multi-Join Queries," The VLDB Journal, Jun. 1997, pp. 121-131.
- Christophides, et al., "Evaluating Queries with Generalized Path Expressions," Proceedings of the 1996 ACM SIGMOD International Conference on Management of Data, Montreal, Quebec, Canada, Jun. 4-6, 1996, SIGMOD Record vol. 25, No. 2, Jun. 1996, pp. 413-422.