首页> 外国专利> Optimization of SQL queries using universal quantifiers, set intersection, and max/min aggregation in the presence of nullable columns

Optimization of SQL queries using universal quantifiers, set intersection, and max/min aggregation in the presence of nullable columns

机译:在存在可空列的情况下,使用通用量词,集合交集和最大/最小聚合来优化SQL查询

摘要

A method and apparatus for optimizing SQL queries by propagating and exploiting column nullability. Column nullability is identified and propagated using a three-valued logic, wherein a column of a table can be identified nullability information is exploited to optimize query operations through transformations. In one aspect of the present invention, quantified predicates (such as " ALL") are transformed into simple predicates involving singleton subqueries so that indexing can be exploited. In another aspect of the present invention, "is not null" predicates are generated and pushed for certain aggregate queries. In still another aspect of the present invention, intersect operations are transformed into joins. The end result is that the present invention can significantly enhance the performance of the queries.
机译:一种通过传播和利用列可空性来优化SQL查询的方法和装置。列可空性使用三值逻辑进行标识和传播,其中可以标识表的列,可空性信息可用于通过转换优化查询操作。在本发明的一方面,将量化的谓词(例如“> ALL”)转换为涉及单例子查询的简单谓词,以便可以利用索引。在本发明的另一方面,针对某些聚合查询生成并推送“不为空”谓词。在本发明的又一方面,将相交操作转换成联接。最终结果是本发明可以显着增强查询的性能。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号