METHOD AND SYSTEM FOR OPTIMIZING USER DATABASE QUERIES
    71.
    发明申请
    METHOD AND SYSTEM FOR OPTIMIZING USER DATABASE QUERIES 审中-公开
    优化用户数据库查询的方法和系统

    公开(公告)号:US20070067262A1

    公开(公告)日:2007-03-22

    申请号:US11533513

    申请日:2006-09-20

    IPC分类号: G06F17/30

    CPC分类号: G06F16/2453

    摘要: A technique for retrieving from a database system data stored in one or more tables is useful in performing cost based query rewrite on user database queries. The technique involves receiving a database query having at least two input relations and evaluating the domain size of the join column(s) of at least one of the input relations. If the domain size of the join column(s) of at least one evaluated input relation is relatively small, the method replaces the input relation(s) in the query with one or more constant expressions. The method also includes evaluating the query and delivering the selected data to the user.

    摘要翻译: 从数据库系统检索存储在一个或多个表中的数据的技术在对用户数据库查询执行基于成本的查询重写是有用的。 该技术涉及接收具有至少两个输入关系的数据库查询,并评估至少一个输入关系的连接列的域大小。 如果至少一个评估输入关系的连接列的域大小相对较小,则该方法将使用一个或多个常量表达式替换查询中的输入关系。 该方法还包括评估查询并将所选择的数据递送给用户。

    Optimization of SQL queries involving aggregate expressions using a
plurality of local and global aggregation operations
    72.
    发明授权
    Optimization of SQL queries involving aggregate expressions using a plurality of local and global aggregation operations 失效
    使用多个本地和全局聚合操作优化涉及聚合表达式的SQL查询

    公开(公告)号:US5884299A

    公开(公告)日:1999-03-16

    申请号:US795114

    申请日:1997-02-06

    IPC分类号: G06F17/30

    摘要: A method, apparatus, and article of manufacture for optimizing SQL queries in a relational database management system involving aggregate and grouping functions. A local aggregation operation is performed on one or more processors of a massively parallel processor (MPP) computer system, wherein rows of the table that are local to each processor are locally aggregated to create one or more aggregate result rows. The aggregate result rows created by each of the local aggregation operations are then re-distributed to one or more processors and coalesced into a global aggregate result row by a global aggregation operation.

    摘要翻译: 一种在关系数据库管理系统中优化SQL查询的方法,装置和制品,涉及聚合和分组功能。 在大规模并行处理器(MPP)计算机系统的一个或多个处理器上执行本地聚合操作,其中本地对每个处理器进行本地表的行被本地聚合以创建一个或多个聚合结果行。 然后将由每个本地聚合操作创建的聚合结果行重新分配到一个或多个处理器,并通过全局聚合操作合并到全局聚合结果行。