SQL query problem determination tool
    1.
    发明授权
    SQL query problem determination tool 失效
    SQL查询问题确定工具

    公开(公告)号:US07765200B2

    公开(公告)日:2010-07-27

    申请号:US11089677

    申请日:2005-03-25

    IPC分类号: G06F7/00 G06F17/30

    CPC分类号: G06F11/362

    摘要: A method and system for query problem determination have been disclosed. The method includes receiving a database query; creating a query execution plan for the database query comprising a plurality of query plan operators; and executing the query execution plan, wherein a progress indicator is displayed for each query plan operator. The system includes a query progress monitor, which collects progress information for each query plan operator during the execution of the query execution plan. This progress information is then communicated to a query progress visualizer and a query progress analyzer, which graphically displays the progress information as a progress indicator for each query plan operator and performs debugger type operations, respectively. In this manner, information concerning the progress of the query execution is provided at a query operator level, such that the information may be used to more efficiently debug any problems with the query.

    摘要翻译: 已经公开了一种用于查询问题确定的方法和系统。 该方法包括接收数据库查询; 为包括多个查询计划运算符的数据库查询创建查询执行计划; 以及执行所述查询执行计划,其中针对每个查询计划运算符显示进度指示符。 该系统包括查询进度监视器,它在执行查询执行计划期间收集每个查询计划运算符的进度信息。 然后将该进度信息传递给查询进度可视化器和查询进度分析器,该分析器以图形方式将进度信息显示为每个查询计划操作符的进度指示符,并分别执行调试器类型操作。 以这种方式,在查询操作者级别提供关于查询执行进度的信息,使得可以使用该信息来更有效地调试查询的任何问题。

    SQL query problem determination tool
    2.
    发明申请
    SQL query problem determination tool 失效
    SQL查询问题确定工具

    公开(公告)号:US20060218125A1

    公开(公告)日:2006-09-28

    申请号:US11089677

    申请日:2005-03-25

    IPC分类号: G06F17/30

    CPC分类号: G06F11/362

    摘要: A method and system for query problem determination have been disclosed. The method includes receiving a database query; creating a query execution plan for the database query comprising a plurality of query plan operators; and executing the query execution plan, wherein a progress indicator is displayed for each query plan operator. The system includes a query progress monitor, which collects progress information for each query plan operator during the execution of the query execution plan. This progress information is then communicated to a query progress visualizer and a query progress analyzer, which graphically displays the progress information as a progress indicator for each query plan operator and performs debugger type operations, respectively. In this manner, information concerning the progress of the query execution is provided at a query operator level, such that the information may be used to more efficiently debug any problems with the query.

    摘要翻译: 已经公开了一种用于查询问题确定的方法和系统。 该方法包括接收数据库查询; 为包括多个查询计划运算符的数据库查询创建查询执行计划; 以及执行所述查询执行计划,其中针对每个查询计划运算符显示进度指示符。 该系统包括查询进度监视器,它在执行查询执行计划期间收集每个查询计划运算符的进度信息。 然后将该进度信息传递给查询进度可视化器和查询进度分析器,该分析器以图形方式将进度信息显示为每个查询计划操作符的进度指示符,并分别执行调试器类型操作。 以这种方式,在查询操作者级别提供关于查询执行进度的信息,使得可以使用该信息来更有效地调试查询的任何问题。

    Progressive refinement of a federated query plan during query execution
    4.
    发明授权
    Progressive refinement of a federated query plan during query execution 失效
    查询执行期间联合查询计划的逐步细化

    公开(公告)号:US07877381B2

    公开(公告)日:2011-01-25

    申请号:US11389596

    申请日:2006-03-24

    IPC分类号: G06F7/00 G06F17/00

    CPC分类号: G06F17/30463

    摘要: A way for progressively refining a query execution plan during query execution in a federated data system is provided. Re-optimization constraints are placed in the query execution plan during query compilation. When a re-optimization constraint is violated during query execution, a model of the query execution plan is refined using a partially executed query to form a new query execution plan. The new query execution plan is compiled. The compiled new query execution plan is executed.

    摘要翻译: 提供了一种在联合数据系统中查询执行期间逐步完善查询执行计划的方法。 在查询编译期间,重新优化约束被放置在查询执行计划中。 当在查询执行期间违反重新优化约束时,使用部分执行的查询来改进查询执行计划的模型以形成新的查询执行计划。 新的查询执行计划被编译。 执行编译的新查询执行计划。

    AUTOMATICALLY AND ADAPTIVELY DETERMINING EXECUTION PLANS FOR QUERIES WITH PARAMETER MARKERS
    5.
    发明申请
    AUTOMATICALLY AND ADAPTIVELY DETERMINING EXECUTION PLANS FOR QUERIES WITH PARAMETER MARKERS 失效
    自动和自适应地确定具有参数标记的查询的执行计划

    公开(公告)号:US20080222093A1

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

    申请号:US12125221

    申请日:2008-05-22

    IPC分类号: G06F17/30

    CPC分类号: G06F17/30469

    摘要: A method and system for automatically and adaptively determining query execution plans for parametric queries. A first classifier trained by an initial set of training points is generated. A query workload and/or database statistics are dynamically updated. A new set of training points is collected off-line. Using the new set of training points, the first classifier is modified into a second classifier. A database query is received at a runtime subsequent to the off-line phase. The query includes predicates having parameter markers bound to actual values. The predicates are associated with selectivities. A mapping of the selectivities into a plan determines the query execution plan. The determined query execution plan is included in an augmented set of training points, where the augmented set includes the initial set and the new set.

    摘要翻译: 一种用于自动和自适应地确定参数查询的查询执行计划的方法和系统。 产生由初始训练点训练的第一分类器。 动态更新查询工作负载和/或数据库统计信息。 离线收集了一套新的培训点。 使用新的一组训练点,第一个分类器被修改为第二个分类器。 在离线阶段之后的运行时间接收数据库查询。 该查询包括具有绑定到实际值的参数标记的谓词。 谓词与选择性相关联。 将选择性映射到计划中确定查询执行计划。 确定的查询执行计划被包括在增强的训练点集合中,其中增强集合包括初始集合和新集合。

    Automatically determining optimization frequencies of queries with parameter markers
    6.
    发明授权
    Automatically determining optimization frequencies of queries with parameter markers 失效
    使用参数标记自动确定查询的优化频率

    公开(公告)号:US07987178B2

    公开(公告)日:2011-07-26

    申请号:US12125146

    申请日:2008-05-22

    IPC分类号: G06F17/30

    CPC分类号: G06F17/30463 G06F17/30306

    摘要: A method and system for automatically determining optimization frequencies of queries having one or more parameter markers. Execution plans for a query are generated and each plan is associated with one or more bind value sets. An optimization frequency is selected based on differences between pairs of execution costs where one execution cost of a pair is a cost of executing the query with a bind value set via a first execution plan and the other execution cost of the pair is a cost of optimally executing the query with the bind value set via a second execution plan. The differences are based on maximum selectivity or cardinality distances associated with the bind value sets. If none of the differences exceeds a predefined value, the query is optimized once. If at least one of the differences exceeds the predefined value, the query is reoptimized each time the query is executed.

    摘要翻译: 一种用于自动确定具有一个或多个参数标记的查询的优化频率的方法和系统。 生成查询的执行计划,并将每个计划与一个或多个绑定值集相关联。 基于执行成本对之间的差异来选择优化频率,其中一对的执行成本是通过经由第一执行计划设置的绑定值执行查询的成本,并且该对的另一个执行成本是最佳的成本 通过第二个执行计划执行具有设置的绑定值的查询。 差异基于与绑定值集相关联的最大选择性或基数距离。 如果没有任何差异超过预定义值,则查询优化一次。 如果差异中的至少一个超过了预定义的值,则每次执行查询时都会重新优化查询。

    Consistent and unbiased cardinality estimation for complex queries with conjuncts of predicates
    7.
    发明授权
    Consistent and unbiased cardinality estimation for complex queries with conjuncts of predicates 有权
    具有谓词结合的复杂查询的一致且无偏差的基数估计

    公开(公告)号:US07512629B2

    公开(公告)日:2009-03-31

    申请号:US11457418

    申请日:2006-07-13

    IPC分类号: G06F7/00

    摘要: The present invention provides a method of selectivity estimation in which preprocessing steps improve the feasibility and efficiency of the estimation. The preprocessing steps are partitioning (to make iterative scaling estimation terminate in a reasonable time for even large sets of predicates), forced partitioning (to enable partitioning in case there are no “natural” partitions, by finding the subsets of predicates to create partitions that least impact the overall solution); inconsistency resolution (in order to ensure that there always is a correct and feasible solution), and implied zero elimination (to ensure convergence of the iterative scaling computation under all circumstances). All of these preprocessing steps make a maximum entropy method of selectivity estimation produce a correct cardinality model, for any kind of query with conjuncts of predicates. In addition, the preprocessing steps can also be used in conjunction with prior art methods for building a cardinality model.

    摘要翻译: 本发明提供了一种选择性估计方法,其中预处理步骤提高了估计的可行性和效率。 预处理步骤是分区(使迭代缩放估计在甚至大量谓词的合理时间内终止),强制分区(在没有“自然”分区的情况下启用分区),通过查找谓词子集来创建分区 对整体解决方案影响最小); 不一致性解决(为了确保总是有正确可行的解决方案),并暗示零消除(以确保在任何情况下迭代缩放计算的收敛)。 所有这些预处理步骤使得选择性估计的最大熵方法产生正确的基数模型,用于具有谓词结合的任何类型的查询。 此外,预处理步骤还可以与用于构建基数模型的现有技术方法结合使用。

    AUTOMATICALLY DETERMINING OPTIMIZATION FREQUENCIES OF QUERIES WITH PARAMETER MARKERS
    9.
    发明申请
    AUTOMATICALLY DETERMINING OPTIMIZATION FREQUENCIES OF QUERIES WITH PARAMETER MARKERS 失效
    用参数标记自动确定优化优化频率

    公开(公告)号:US20080222092A1

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

    申请号:US12125146

    申请日:2008-05-22

    IPC分类号: G06F17/30

    CPC分类号: G06F17/30463 G06F17/30306

    摘要: A method and system for automatically determining optimization frequencies of queries having one or more parameter markers. Execution plans for a query are generated and each plan is associated with one or more bind value sets. An optimization frequency is selected based on differences between pairs of execution costs where one execution cost of a pair is a cost of executing the query with a bind value set via a first execution plan and the other execution cost of the pair is a cost of optimally executing the query with the bind value set via a second execution plan. The differences are based on maximum selectivity or cardinality distances associated with the bind value sets. If none of the differences exceeds a predefined value, the query is optimized once. If at least one of the differences exceeds the predefined value, the query is reoptimized each time the query is executed.

    摘要翻译: 一种用于自动确定具有一个或多个参数标记的查询的优化频率的方法和系统。 生成查询的执行计划,并将每个计划与一个或多个绑定值集相关联。 基于执行成本对之间的差异来选择优化频率,其中一对的执行成本是通过经由第一执行计划设置的绑定值执行查询的成本,并且该对的另一个执行成本是最佳的成本 通过第二个执行计划执行具有设置的绑定值的查询。 差异基于与绑定值集相关联的最大选择性或基数距离。 如果没有任何差异超过预定义值,则查询优化一次。 如果差异中的至少一个超过了预定义的值,则每次执行查询时都会重新优化查询。