首页> 外国专利> Method and apparatus for dynamically associating different query execution strategies with selective portions of a database table

Method and apparatus for dynamically associating different query execution strategies with selective portions of a database table

机译:用于将不同查询执行策略与数据库表的选择性部分动态关联的方法和装置

摘要

A query facility for database queries dynamically determines whether selective portions of a database table are likely to benefit from separate query execution strategies, and constructs an appropriate separate execution strategies accordingly. Preferably, the database contains at least one relatively large table comprising multiple partitions, each sharing the definitional structure of the table and containing a different respective discrete subset of the table records. The query facility compares metadata for different partitions to determine whether sufficiently large differences exist among the partitions, and in appropriate cases selects one or more partitions for separate execution strategies. Preferably, partitions are ranked for separate evaluation using a weighting formula which takes into account: (a) the number of indexes for the partition, (b) recency of change activity, and (c) the size of the partition.
机译:用于数据库查询的查询工具动态确定数据库表的选择性部分是否可能会受益于单独的查询执行策略,并相应地构造适当的单独的执行策略。优选地,数据库包含至少一个相对较大的表,该表包括多个分区,每个分区共享表的定义结构并且包含表记录的不同的相应离散子集。查询工具比较不同分区的元数据,以确定分区之间是否存在足够大的差异,并在适当的情况下为单独的执行策略选择一个或多个分区。优选地,使用加权公式对分区进行分级以进行单独评估,该加权公式考虑到:(a)分区的索引数,(b)变更活动的新近度,以及(c)分区的大小。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号