首页> 外国专利> Query expression evaluation using sample based projected selectivity

Query expression evaluation using sample based projected selectivity

机译:使用基于样本的预测选择性来查询表达式评估

摘要

Methods, systems, and computer program products are provided for query expression evaluation for query optimization. Embodiments include receiving a query including a plurality of predicates; creating a truth table representing the possible solutions to the query; identifying a plurality of intersections of the truth table, the plurality of intersections including each predicate of the query; assigning a selectivity factor to each predicate; determining in dependence upon the selectivity factors for each predicate a selectivity rating for each of the intersections of the truth table; selecting one or more of the intersections in dependence upon the selectivity rating; and determining in dependence upon the selected intersections a percentage of rows in a database table returned by the query; and providing the percentage of rows in the database table to an access plan generator for query optimization.
机译:提供了用于查询表达式评估以优化查询的方法,系统和计算机程序产品。实施例包括:接收包括多个谓词的查询;创建一个真值表,表示查询的可能解决方案;识别真值表的多个交集,所述多个交集包括查询的每个谓词;为每个谓词分配一个选择性因子;根据每个选择因子确定谓词对真值表的每个交集的选择率;根据选择性等级选择一个或多个交叉点;根据所选择的交点,确定查询返回的数据库表中行的百分比;并将数据库表中的行百分比提供给访问计划生成器以进行查询优化。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号