首页> 外国专利> Query optimization through the use of multi-column statistics to avoid the problems of column correlation

Query optimization through the use of multi-column statistics to avoid the problems of column correlation

机译:通过使用多列统计信息来进行查询优化以避免列相关性问题

摘要

The system, method, and program of this invention collects multi- column statistics, by a database management system, to reflect a relationship among multiple columns of a table in a relational database. These statistics are stored in the system catalog, and are used during query optimization to obtain an estimate of the number of qualifying rows when a query has predicates on multiple columns of a table.P PA multi-column linear quantile statistic is collected by dividing the data of multiple columns into sub-ranges where each sub-range has approximately an even distribution of data, and determining a frequency and cardinality of each sub-range. A multi-column polygonal quantile statistic is collected by dividing the data of multiple columns into sub- spaces where each sub-space contains approximately the same number of tuples, and determining a frequency and cardinality of each sub-space. P PThe system catalog is accessed for the stored multi- column linear quantile statistic for a query having a single range predicate and at least one equal predicate to determine the selectivity value for the predicates of the query. The system catalog is accessed for the stored multi-column polygonal quantile statistic for a query having more than one range predicate. These statistics are used in various ways to determine the selectivity value for the predicates of the query.
机译:本发明的系统,方法和程序通过数据库管理系统收集多列统计信息,以反映关系数据库中表的多列之间的关系。这些统计信息存储在系统目录中,并在查询优化期间用于当查询对表的多个列具有谓词时获得合格行数的估计。

多列线性分位数统计通过将多列的数据划分为多个子范围(其中每个子范围具有大致均匀的数据分布)并确定每个子范围的频率和基数,来收集数据。通过将多列数据划分为子空间(其中每个子空间包含大约相同的元组),并确定每个子空间的频率和基数,可以收集多列多边形分位数统计信息。 >针对具有单个范围谓词和至少一个相等谓词的查询,为存储的多列线性分位数统计信息访问系统目录,以确定查询谓词的选择性值。对于具有一个以上范围谓词的查询,访问系统目录以获取所存储的多列多边形分位数统计信息。这些统计信息以各种方式用于确定查询谓词的选择性值。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号