Query transformation for union all view join queries using join predicates for pruning and distribution
    4.
    发明申请
    Query transformation for union all view join queries using join predicates for pruning and distribution 有权
    联合所有视图的查询转换使用连接谓词进行修剪和分发

    公开(公告)号:US20050065926A1

    公开(公告)日:2005-03-24

    申请号:US10669749

    申请日:2003-09-24

    IPC分类号: G06F17/30

    摘要: A method, apparatus, and article of manufacture for optimizing a query in a computer system, wherein the query is performed by the computer system to retrieve data from a database stored on the computer system. The optimization includes: (a) combining join predicates from a query with local predicates from each branch of one or more UNION ALL views referenced by the query; (b) analyzing the combined predicates; and (c) not generating the join when the analysis step indicates that the combined predicates lead to an empty result.

    摘要翻译: 一种用于优化计算机系统中的查询的方法,装置和制品,其中所述查询由所述计算机系统执行以从存储在所述计算机系统上的数据库中检索数据。 优化包括:(a)将来自查询的连接谓词与来自查询引用的一个或多个UNION ALL视图的每个分支的本地谓词组合; (b)分析合并谓词; 和(c)当分析步骤指示组合的谓词导致空的结果时,不产生连接。

    Method of returning data during insert statement processing
    5.
    发明申请
    Method of returning data during insert statement processing 有权
    插入语句处理期间返回数据的方法

    公开(公告)号:US20050138010A1

    公开(公告)日:2005-06-23

    申请号:US10744633

    申请日:2003-12-22

    IPC分类号: G06F17/30

    CPC分类号: G06F17/30595 G06F17/30463

    摘要: A method for generating an execution plan for updating and retrieving data from a database in a single process includes: receiving a statement by a server to update a database with a first set of data and to retrieve a second set of data from the database; building a first execution plan to update the database with the first set of data; building a second execution plan to retrieve the second set of data from the database; and building a single execution plan including a combination of the first and second execution plans. The single execution plan allows for the updating and retrieval of data with a single crossing of an interface between a client and the database. By performing both functions in this manner, the efficiency of performing such tasks on the database is significantly increased.

    摘要翻译: 一种用于生成用于在单个进程中从数据库更新和检索数据的执行计划的方法包括:由服务器接收用第一组数据更新数据库的语句,并从数据库中检索第二组数据; 构建第一个执行计划,用第一组数据更新数据库; 构建第二个执行计划以从数据库中检索第二组数据; 并构建包括第一和第二执行计划的组合的单个执行计划。 单个执行计划允许通过客户端和数据库之间的接口的单个​​交叉来更新和检索数据。 通过以这种方式执行这两个功能,在数据库上执行这样的任务的效率显着增加。