Performing Hierarchical Aggregate Compression
    21.
    发明申请
    Performing Hierarchical Aggregate Compression 审中-公开
    执行层次聚合压缩

    公开(公告)号:US20090144307A1

    公开(公告)日:2009-06-04

    申请号:US11946945

    申请日:2007-11-29

    IPC分类号: G06F17/30

    CPC分类号: G06F16/24556

    摘要: Methods, systems, and computer program products are provided for executing database rollup queries. Methods can include iterating through a database table which has been grouped and ordered on the different columns which are in the ROLLUP clause. In some embodiments, a GROUP BY ROLLUP construct can be executed while only requiring an additional one storage location per ordered column per each aggregate function to be performed on each database row. The higher level aggregate functions can be executed without relying on accessing any lower level aggregate results in some embodiments. A suitably grouped and ordered database table can have a multiple level hierarchical ROLLUP function executed in a single pass without having to retrieve lower level aggregate results.

    摘要翻译: 提供方法,系统和计算机程序产品用于执行数据库汇总查询。 方法可以包括遍历已经在ROLLUP子句中的不同列上分组和排序的数据库表。 在一些实施例中,可以执行GROUP BY ROLLUP构造,同时仅在每个数据库行上执行每个聚合函数需要每个排序列的附加一个存储位置。 在一些实施例中,可以不依赖于访问任何较低级别的聚合结果来执行较高级别的聚合函数。 适当分组和排序的数据库表可以具有在单次通过中执行的多级分层ROLLUP功能,而不必检索较低级别的聚合结果。

    OPTIMIZING A QUERY TO A PARTITIONED DATABASE TABLE USING A VIRTUAL MAINTAINED TEMPORARY INDEX THAT SPANS MULTIPLE DATABASE PARTITIONS
    23.
    发明申请
    OPTIMIZING A QUERY TO A PARTITIONED DATABASE TABLE USING A VIRTUAL MAINTAINED TEMPORARY INDEX THAT SPANS MULTIPLE DATABASE PARTITIONS 有权
    使用虚拟维护的临时索引优化查询到分区数据表,可以显示多个数据库分段

    公开(公告)号:US20080215540A1

    公开(公告)日:2008-09-04

    申请号:US12120582

    申请日:2008-05-14

    IPC分类号: G06F17/30

    CPC分类号: G06F17/30327

    摘要: A query optimizer optimizes a query to a partitioned database table by determining common characteristics of the partitions and generating a virtual maintained temporary index that spans multiple partitions. Using the virtual maintained temporary index allows the query optimizer to generate an access plan based on the virtual maintained temporary index, which relieves the optimizer from having to individually optimize access to each partition for partitions that share common characteristics.

    摘要翻译: 查询优化器通过确定分区的共同特征并生成跨多个分区的虚拟维护临时索引来优化对分区数据库表的查询。 使用虚拟维护的临时索引允许查询优化器基于虚拟维护的临时索引生成访问计划,这减轻了优化器必须单独优化对共享共同特征的分区的每个分区的访问。

    Caching an Access Plan for a Query
    24.
    发明申请
    Caching an Access Plan for a Query 审中-公开
    缓存查询访问计划

    公开(公告)号:US20080183684A1

    公开(公告)日:2008-07-31

    申请号:US11627672

    申请日:2007-01-26

    IPC分类号: G06F17/30

    CPC分类号: G06F16/24542

    摘要: Methods, apparatus, and products are disclosed for caching an access plan for a query that include: receiving, in a SQL module of a DBMS, a SQL query that specifies data for retrieval from a database, the database characterized by database statistics, the SQL query characterized by one or more host variable values; generating, by the SQL module, an access plan in dependence upon the SQL query; calculating, by the SQL module, a routing code for the SQL query in dependence upon the host variable values of the SQL query and a portion of the database statistics; and storing, by the SQL module, the access plan in an access plan cache, including associating with the access plan the routing code for the SQL query and the portion of the database statistics used to calculate the routing code.

    摘要翻译: 公开了用于缓存查询的访问计划的方法,装置和产品,其包括:在DBMS的SQL模块中接收指定用于从数据库检索的数据的SQL查询,数据库统计特征的数据库,SQL 查询由一个或多个主机变量值表征; 由SQL模块生成依赖于SQL查询的访问计划; 根据SQL查询的主机变量值和数据库统计的一部分,由SQL模块计算SQL查询的路由代码; 并且由SQL模块将访问计划存储在访问计划高速缓存中,包括与访问计划关联,用于SQL查询的路由代码和用于计算路由代码的数据库统计信息的部分。

    Preserving a query plan cache
    30.
    发明授权
    Preserving a query plan cache 有权
    保留查询计划缓存

    公开(公告)号:US07831569B2

    公开(公告)日:2010-11-09

    申请号:US11870118

    申请日:2007-10-10

    IPC分类号: G06F7/00

    摘要: A method, apparatus, and program product are provided for preserving a query plan cache on a backup system having a dataspace containing a copy of data and a copy of a query plan cache from a production system. An update is initiated of at least a portion of the copy of the data on the backup system with a portion of the data on the production system. A merge is initiated of updated query plans in the query plan cache from the production system with corresponding query plans in the copy of the query plan cache on the backup system. Objects are correlated in the updated query plans in the copy of the query plan cache with the updated copy of the data on the backup system.

    摘要翻译: 提供了一种方法,装置和程序产品,用于在备份系统上保留查询计划缓存,该备份系统具有包含来自生产系统的数据副本和查询计划缓存副本的数据空间。 在备份系统上的数据的副本的至少一部分的一个更新是在生产系统上的一部分数据发起的。 在生产系统的查询计划缓存中启动更新的查询计划的合并,并在备份系统上的查询计划缓存的副本中具有对应的查询计划。 对象在查询计划缓存的副本中的更新的查询计划中与备份系统上更新的数据副本相关联。