首页> 外国专利> System and a two-pass algorithm for determining the optimum access path for multi-table SQL queries

System and a two-pass algorithm for determining the optimum access path for multi-table SQL queries

机译:用于确定多表SQL查询的最佳访问路径的系统和两遍算法

摘要

An apparatus, article of manufacture and computer-based method is provided for determining the optimum join sequence for processing a query having a plurality of tables from a relational database stored in an electronic storage device having a database management system. The method is performed in two passes. The first pass is used for determining an optimum join sequence for joining the plurality of tables from the query. The second pass uses the optimum join sequence for creating a lowest cost access path plan for processing the query. The first pass performs successive steps until creation of a simulated composite table having all tables from the query, wherein each step creates a set of miniplans for simulating all possible joins of a predetermined subset of the query tables and uses a cost model calculations for estimating and saving the least expensive join from this set of joins.
机译:提供了一种设备,制品和基于计算机的方法,用于从存储在具有数据库管理系统的电子存储设备中的关系数据库中确定用于处理具有多个表的查询的最佳联接顺序。该方法分两次进行。第一遍用于从查询中确定用于联接多个表的最佳联接顺序。第二遍使用最佳连接顺序来创建用于处理查询的最低成本的访问路径计划。第一遍执行连续的步骤,直到创建具有查询中所有表的模拟复合表为止,其中每个步骤都会创建一组小型计划,用于模拟查询表的预定子集的所有可能的联接,并使用成本模型计算来估算和从这组连接中节省最便宜的连接。

著录项

  • 公开/公告号US7085754B2

    专利类型

  • 公开/公告日2006-08-01

    原文格式PDF

  • 申请/专利权人 JOSEPH F. SINNOTT JR.;

    申请/专利号US20020090275

  • 发明设计人 JOSEPH F. SINNOTT JR.;

    申请日2002-03-04

  • 分类号G06F17/30;

  • 国家 US

  • 入库时间 2022-08-21 21:42:43

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号