首页> 外国专利> Histogram synthesis modeler for a database query optimizer

Histogram synthesis modeler for a database query optimizer

机译:直方图综合建模器,用于数据库查询优化器

摘要

The invention provides a mechanism for using statistics, in connection with various database query cost modeling techniques, to more accurately estimate the number of rows and UECs that will be produced by relational operators and predicates in database systems. The ability to accurately estimate the number of rows and UECs returned by a relational operator and/or a predicate is fundamental to computing the cost of a query execution plan. This, in turn, drives the optimizer's ability to select the query plan best suited for the desired performance goal. According to the present invention, histogram statistics are synthesized bottom up from the leaf nodes to the root node of a query tree. Given input statistics in the form of histograms for each operand of a relational operator or predicate, the present inventive method and apparatus merge the input statistics in a way that it simulates the effects of the run time operator on the actual data, so as to produce a predicted row count and UEC for each histogram interval representative of the data that actually will be produced by each such operator or predicate in the query tree. A database query optimizer may use these statistics to select and implement an optimal query plan.
机译:本发明提供了一种用于结合各种数据库查询成本建模技术来使用统计信息的机制,以更准确地估计将由数据库系统中的关系运算符和谓词产生的行和UEC的数量。准确估计关系运算符和/或谓词返回的行数和UEC数量的能力对于计算查询执行计划的成本至关重要。反过来,这驱动了优化器选择最适合所需性能目标的查询计划的能力。根据本发明,直方图统计信息是从查询树的叶节点到根节点自下而上合成的。给定用于关系运算符或谓词的每个操作数的直方图形式的输入统计量,本发明的方法和设备以模拟运行时间运算符对实际数据的影响的方式合并输入统计量,从而产生每个直方图间隔的预测行数和UEC,代表查询树中每个这样的运算符或谓词实际产生的数据。数据库查询优化器可以使用这些统计信息来选择和实施最佳查询计划。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号