首页> 外国专利> Optimizing execution of a database query by using the partitioning schema of a partitioned object to select a subset of partitions from another partitioned object

Optimizing execution of a database query by using the partitioning schema of a partitioned object to select a subset of partitions from another partitioned object

机译:通过使用分区对象的分区架构从另一个分区对象中选择分区的子集来优化数据库查询的执行

摘要

One embodiment of the present invention provides a system that optimizes the execution of a database query involving a target partitioned-database-object. During system operation, the database receives a query. If the query has a predicate that includes a partition-mapping function that uses the partitioning schema of a partitioned database-object and a list of columns from one or more tables to express a mapping of the list of column values to the partitions of the partitioned database-object, the system determines the compatibility of the partitioning schemas of the target partitioned-database-object and the partitioned database-object. Next, if the partitioning schemas are compatible, and if the list of columns is compatible with the partitioning keys of the target partitioned-database-object and the partitioned database-object, the system attempts to identify a subset of partitions in the target partitioned-database-object that satisfy the predicate. Finally, if a subset of partitions is successfully identified, the system performs the query only on the identified subset of partitions, and not on the other partitions, thereby optimizing the execution of the query by reducing the number of partitions that need to be accessed.
机译:本发明的一个实施例提供了一种优化涉及目标分区数据库对象的数据库查询的执行的系统。在系统操作期间,数据库接收查询。如果查询的谓词包含分区映射功能,该功能使用分区的数据库对象的分区架构和一个或多个表中的列列表来表示列值列表到已分区分区的映射数据库对象,系统确定目标分区数据库对象和分区数据库对象的分区方案的兼容性。接下来,如果分区模式兼容,并且列列表与目标分区数据库对象和分区数据库对象的分区键兼容,则系统会尝试识别目标分区数据库中分区的子集。满足谓词的数据库对象。最后,如果成功识别出分区的子集,则系统仅对识别出的分区子集执行查询,而不对其他分区执行查询,从而通过减少需要访问的分区数量来优化查询的执行。

著录项

  • 公开/公告号US7447679B2

    专利类型

  • 公开/公告日2008-11-04

    原文格式PDF

  • 申请/专利权人 SHRIKANTH SHANKAR;VIKRAM SHUKLA;

    申请/专利号US20040857651

  • 发明设计人 SHRIKANTH SHANKAR;VIKRAM SHUKLA;

    申请日2004-05-28

  • 分类号G06F17/30;G06F7/00;

  • 国家 US

  • 入库时间 2022-08-21 20:10:08

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号