Runtime statistics feedback for query plan cost estimation

    公开(公告)号:US11803545B1

    公开(公告)日:2023-10-31

    申请号:US17849446

    申请日:2022-06-24

    Applicant: SAP SE

    CPC classification number: G06F16/24542 G06F16/2246 G06F16/24573 G06F16/284

    Abstract: A computer implemented method can execute a first query plan for a query, obtain statistics for internal nodes of a first query tree representing the first query plan, receive a second query tree representing a second query plan for the query, search for a matching internal node of the first query tree for a selected internal node of the second query tree, and responsive to finding the matching internal node of the first query tree, apply the statistics for the matching internal node of the first query tree to the selected internal node of the second query tree for estimating cost of the second query plan during query optimization of the query. Related systems and software for implementing the method are also disclosed.

    DATABASE WORKLOAD CAPTURE AND REPLAY

    公开(公告)号:US20220179860A1

    公开(公告)日:2022-06-09

    申请号:US17678720

    申请日:2022-02-23

    Applicant: SAP SE

    Abstract: Technologies are described for facilitating data workload capture, workload replay, and comparing the performance of a plurality of database systems. A plurality of requests for database operations are received from one or more database clients. The requests for database operations are executed. For the plurality of requests for database operations, execution context information is generated for a plurality of execution contexts. For the plurality of requests for database operations, a plurality of performance measures are generated. The execution context information and the performance measures are stored in a workload capture store, such as a file. The workload capture file is useable to replay the captured workload at a second database system using at least a portion of the execution context information and at least a portion of the performance measures.

    PROPAGATION OF STRUCTURED QUERY LANGUAGE ASSOCIATIONS

    公开(公告)号:US20180336245A1

    公开(公告)日:2018-11-22

    申请号:US15596905

    申请日:2017-05-16

    Applicant: SAP SE

    CPC classification number: G06F16/24535 G06F16/212 G06F16/245 G06F16/24537

    Abstract: A method for propagating a structure query language (SQL) association can include determining, based at least on a syntax of a SQL create view statement, that a SQL association requires propagation to a SQL view associated with the SQL create view statement. The SQL association can combine data from at least a first data model and a second data model at a database. The SQL view can comprise at least a portion of the combined data. An association information data structure can be generated for storing information corresponding to a definition of the SQL association. The SQL create view statement can be executed based on the association information data structure. Related systems and articles of manufacture, including computer program products, are also disclose.

    SELECTIVELY ALLOWING QUERY OPTIMIZATION IN QUERY PROCESSING

    公开(公告)号:US20200311081A1

    公开(公告)日:2020-10-01

    申请号:US16371276

    申请日:2019-04-01

    Applicant: SAP SE

    Abstract: Implementations of the present disclosure include receiving, by a query processing server, a first query, the first query including a syntax indicating that precision loss is allowed, processing, by the query processing server, the first query to provide a first QEP, optimization of which would result in precision loss in a generated query result, determining that the syntax is provided, and in response, optimizing the first QEP to provide an optimized QEP, executing the optimized QEP to generate a query result that includes data stored within a database system, the query result having reduced accuracy relative to a query result that would be generated based on the first QEP, and providing the query result as output from the database system.

    Case join decompositions
    7.
    发明授权

    公开(公告)号:US10997174B2

    公开(公告)日:2021-05-04

    申请号:US14947927

    申请日:2015-11-20

    Applicant: SAP SE

    Abstract: Methods and apparatus, including computer program products, are provided for a case join. In one aspect, there is provided method, which may include receiving a query for a predefined view that is configured to inhibit modification; detecting whether the predefined view includes a database table extended to include an additional column; and generating, in response to the query, a view based on a case join, when the predefined view includes the database table extended to include the additional column. Related apparatus, systems, methods, and articles are also described.

    HYBRID COMPILATION FRAMEWORK FOR ARBITRARY AD-HOC IMPERATIVE FUNCTIONS IN DATABASE QUERIES

    公开(公告)号:US20200320069A1

    公开(公告)日:2020-10-08

    申请号:US16372652

    申请日:2019-04-02

    Applicant: SAP SE

    Abstract: Implementations of the present disclosure include providing a parse tree including a declarative portion and an imperative portion, dividing the parse tree to provide a first parse sub-tree and a second parse sub-tree, compiling the first parse sub-tree using a declarative compiler to provide a query execution plan (QEP) including an imperative script operator to prompt execution of the imperative portion, compiling the second parse sub-tree using an imperative compiler to provide one or more script execution plans, executing, by an execution engine, the QEP until encountering an imperative script operator, and, in response to encountering the imperative script operator, initiating execution of the one or more script execution plans to provide an imperative result, and providing a query result at least partially including the imperative result.

    DATABASE WORKLOAD CAPTURE AND REPLAY
    9.
    发明申请

    公开(公告)号:US20170322972A1

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

    申请号:US15150075

    申请日:2016-05-09

    Applicant: SAP SE

    Abstract: Technologies are described for facilitating data workload capture, workload replay, and comparing the performance of a plurality of database systems. A plurality of requests for database operations are received from one or more database clients. The requests for database operations are executed. For the plurality of requests for database operations, execution context information is generated for a plurality of execution contexts. For the plurality of requests for database operations, a plurality of performance measures are generated. The execution context information and the performance measures are stored in a workload capture store, such as a file. The workload capture file is useable to replay the captured workload at a second database system using at least a portion of the execution context information and at least a portion of the performance measures.

    QUERY PLAN OPTIMIZATION BY PERSISTING A HINT TABLE

    公开(公告)号:US20170147639A1

    公开(公告)日:2017-05-25

    申请号:US14946745

    申请日:2015-11-19

    Applicant: SAP SE

    CPC classification number: G06F17/30463

    Abstract: In one aspect there is a method. The method may include associating a query received from an application with a hint, wherein the hint modifies an execution of the query. The method may further include an optimizer to compile the query according to the hint to produce a second query plan. When no hint is associated with the query, the optimizer may produce a first query plan. The method may further include storing the hint in a persistent table to enable state preservation during a database restart or binary upgrade, and/or executing the query using the second query plan.

Patent Agency Ranking