ESTIMATED EXECUTION TIME FOR QUERY EXECUTION

    公开(公告)号:US20230067482A1

    公开(公告)日:2023-03-02

    申请号:US18051185

    申请日:2022-10-31

    Applicant: Snowflake Inc.

    Abstract: The subject technology tracks a plurality of queries corresponding to a plurality of query plans based on join operations contained in each of the plurality of queries and a previous time of executing each query. The subject technology selects a first query plan among the plurality of query plans. The subject technology determines a value indicating an estimated improvement in execution time of the first query plan in comparison to a previous execution time of a previous query plan. The subject technology attempts to execute a first query using the first query plan. The subject technology determines that a second query plan selected among the plurality of query plans has a second estimated execution time that is less than an estimated execution time of the first query plan. The subject technology executes the first query corresponding to the first query plan at a subsequent time using the second query plan.

    Query plan caching for networked database systems

    公开(公告)号:US11461327B1

    公开(公告)日:2022-10-04

    申请号:US17658535

    申请日:2022-04-08

    Applicant: Snowflake Inc.

    Abstract: The subject technology receives a query, the query including a set of statements for performing the query. The subject technology populates a compilation context based at least in part the query. The subject technology provides the compilation context to a compiler. The subject technology invokes the compiler to perform a compilation process based on the compilation context, the compilation process comprising performing a lookup operation on a stored plan cache for an exact match based on information from the compilation context, the stored plan cache including a set of stored query plans, and determining whether the exact match of a particular query plan is found in the stored plan cache to avoid compiling the query using the compilation context.

Patent Agency Ranking