-
1.
公开(公告)号:WO9832064A2
公开(公告)日:1998-07-23
申请号:PCT/US9723087
申请日:1997-12-15
Applicant: TANDEM COMPUTERS INC
Inventor: CELIS PEDRO , VAISHNAV JAY , ZELLER HANSJORG
CPC classification number: G06F17/30463 , Y10S707/99932 , Y10S707/99933 , Y10S707/99934 , Y10S707/99935 , Y10S707/99936
Abstract: A system and method for optimizing a database query with improved performance enhancements is herein disclosed. The database query consists of one or more logical expressions. Through the repeated application of one or more rules, the logical expressions are transformed into physical expressions and in some cases, execution plans that implement the database query. Each expression has associated with it a set of group attributes that specifies its characteristic inputs and outputs and a cost that estimates the computational expense for executing the expression. The group attributes are used to categorize similar expressions into groups that are stored in a search data structure. They are also used to track duplicate expressions. The cost associated with an expression is used to guide the search process to consider those expressions that will produce low cost plans. The cost is estimated in accordance with a six-fold criteria with each criterion weighted to account for the context of the expression and the application's particular computing environment. The query optimizer is rule-based including transformation and implementation rules that are used to perform transformations on the logical expressions in a subproblem in order to produce a plan. A OnceGuidance guidance method is used to select a set of rules in certain cases that prevent the regeneration of an existing expression.
Abstract translation: 本文公开了一种用于优化具有改进的性能增强的数据库查询的系统和方法。 数据库查询由一个或多个逻辑表达式组成。 通过重复应用一个或多个规则,将逻辑表达式转换为物理表达式,在某些情况下,将实现数据库查询的执行计划。 每个表达式与它相关联一组指定其特征输入和输出的组属性,以及估计执行表达式的计算费用的成本。 组属性用于将类似的表达式分组到存储在搜索数据结构中的组。 它们也用于跟踪重复表达式。 与表达式相关联的成本用于指导搜索过程来考虑将生成低成本计划的表达式。 成本按照六项标准进行估算,每个标准加权以表示表达式和应用程序特定计算环境的上下文。 查询优化器是基于规则的,包括用于对子问题中的逻辑表达式执行转换以生成计划的转换和实现规则。 在一些阻止再现现有表达式的情况下,使用OnceGuidance指导方法来选择一组规则。
-
2.
公开(公告)号:CA2167790A1
公开(公告)日:1996-07-24
申请号:CA2167790
申请日:1996-01-22
Applicant: TANDEM COMPUTERS INC
Inventor: MAIER DONALD S , MARTON ROBERTA S , TROISI JAMES H , CELIS PEDRO
IPC: G06F17/30
Abstract: A database computer system includes memory, residing in a plurality of interconnected computer nodes, for storing database tables. Each database table has a plurality of columns, a primary key index based on a specified subset of the columns, and an associated table schema. At least a subset of the database tables are partitioned into a plurality of partitions, each partition storing records having primary key values in a primary key range distinct from the other partitions. A transaction manager generates and stores an audit trail, each audit entry denoting a database table record event, such as an addition, deletion or alteration of a specified database table record in a specified one of said database tables. Four online data definition procedures allow the structure of a database table to be altered while the database table remains available to execution of transactions, with minimal impact of the availability of the database table for transaction execution. The four online data definition procedures are a move partition procedure, a split partition procedure, a move partition boundary procedure, and a create new index procedure. Each of these online procedures has three or four phases of execution. In a first phase, records of a table partition or the entire table are accessed using read only access, so as to generate a new partition, move records between two partitions, or to create a new index. In a second phase, audit trail entries are used to clean up the data structures created during the first phase. In a third phase, access to the database table is briefly locked while audit trail entries created after thesecond phase are used to make final changes to the data structures created during the first phase, and while the database table schema is updated to reflect the changes to the database table produced.
-
公开(公告)号:CA2178263A1
公开(公告)日:1996-12-08
申请号:CA2178263
申请日:1996-06-05
Applicant: TANDEM COMPUTERS INC
Inventor: ZELLER HANSJORG , CELIS PEDRO
IPC: G06F17/30
Abstract: A method for subquery elimination for a relational model database based on the SQL language running a database management system (DBMS) under the Tandem NonStop (tm) operating kernel. A series of seven transformation rules are applied to eliminate nested queries in the SQL language. The method and teachings of the present invention generalizes to all types of nested subqueries in SQL, allowing for more efficient computations, allocation and maintenance of system resources.
-
-