首页> 外国专利> Method and apparatus for viewing the effect of changes to an index for a database table on an optimization plan for a database query

Method and apparatus for viewing the effect of changes to an index for a database table on an optimization plan for a database query

机译:用于查看数据库表的索引更改对数据库查询优化计划的影响的方法和设备

摘要

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.
机译:一种用于查看对数据库表的索引的改变对诸如SQL语句之类的数据库查询的优化计划的影响的方法和装置。将创建一个虚拟表,该虚拟表模仿数据库上原始表的结构。通过复制原始表(不包括原始表中的任何数据)来创建虚拟表。复制与原始表关联的任何现有原始索引,以定义与虚拟表关联的虚拟索引。查询中对原始表的引用将替换为对虚拟表的引用。然后,数据库管理系统为查询确定新的优化计划。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号