首页> 外国专利> Query optimizer system that detects and prevents mutating table violations of database integrity in a query before execution plan generation

Query optimizer system that detects and prevents mutating table violations of database integrity in a query before execution plan generation

机译:查询优化器系统,在执行计划生成之前,该系统可检测并防止查询中的数据库完整性突变表违规

摘要

An automated system for detecting and preventing mutating table violations of database integrity in a SQL query before generation and selection of an optimal query execution plan (QEP). This system modifies the query graph model (QGM) to restrict the choice of execution plans to those that avoid mutating table integrity (MTI) violations, thereby forcing database integrity during table mutation when executing the optimal QEP. Mutating table integrity violations are detected by evaluating the position in the QGM of each write-node referencing a particular base table with respect to each of the positions of all other read- and write-nodes referencing of the same base table. Every common- referencing node pair is tested for sequencing conflicts and a data-flow dam is inserted in the QGM where necessary to force the completion of the execution of one node before initiating execution of the other common- referencing node. The system of this invention allows processing of all non-cyclic and most cyclic SQL queries known to cause mutating table integrity violations, such as queries having searched and positioned inserts, deletes and updates, and row-level triggers.
机译:一种自动系统,用于在生成和选择最佳查询执行计划(QEP)之前检测和防止SQL查询中的数据库完整性突变表违规。该系统修改了查询图模型(QGM),以将执行计划的选择限制为那些避免更改表完整性(MTI)违规的计划,从而在执行最佳QEP时在表突变期间强制数据库完整性。通过相对于引用同一基表的所有其他读节点和写节点的每个位置来评估引用特定基表的每个写节点在QGM中的位置,可以检测到突变表完整性违规。测试了每个公共参照节点对的序列冲突,并在必要时在QGM中插入了一个数据流坝,以在开始执行另一个公共参照节点之前强制完成一个节点的执行。本发明的系统允许处理已知引起突变表完整性违规的所有非循环和大多数循环SQL查询,例如具有搜索和定位的插入,删除和更新以及行级触发器的查询。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号