Multi-phase query plan caching
    1.
    发明授权

    公开(公告)号:US12135715B1

    公开(公告)日:2024-11-05

    申请号:US18309490

    申请日:2023-04-28

    Applicant: Snowflake Inc.

    Abstract: The subject technology receives a query, the query including a statement for performing the query. The subject technology performs a first lookup operation on a multi-phase cache based on the query. The subject technology performs, in response to a first cache miss of the multi-phase cache, parsing of the statement from the query. The subject technology performs, based on the parsing, a compilation process on the query to generate a compiled query plan, the compilation process determining an optimization and a generalization for the query. The subject technology determines that the compiled query plan is cacheable. The subject technology registers, in response to the compiled query plan being cacheable, a dummy entry in the multi-phase cache.

    MULTI-PHASE QUERY PLAN CACHING
    2.
    发明申请

    公开(公告)号:US20250021556A1

    公开(公告)日:2025-01-16

    申请号:US18901289

    申请日:2024-09-30

    Applicant: Snowflake Inc.

    Abstract: The subject technology receives a query, the query including a statement for performing the query. The subject technology performs a first lookup operation on a multi-phase cache based on the query. The subject technology performs, in response to a first cache miss of the multi-phase cache, parsing of the statement from the query. The subject technology performs, based on the parsing, a compilation process on the query to generate a compiled query plan, the compilation process determining an optimization and a generalization for the query. The subject technology determines that the compiled query plan is cacheable. The subject technology registers, in response to the compiled query plan being cacheable, a dummy entry in the multi-phase cache.

    PERFORMANCE OPTIMIZATIONS FOR SECURE OBJECTS EVALUATIONS

    公开(公告)号:US20230350893A1

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

    申请号:US18172688

    申请日:2023-02-22

    Applicant: Snowflake Inc.

    CPC classification number: G06F16/24544 G06F16/2365

    Abstract: A source table can be provided by a provider account in a data system. A secure view of the source table is provided to one or more consumer accounts, the secure view limiting access to a subset of data in the source table. A plan to execute a command using the secure view may be generated, the plan including a secure view boundary on a subset of operations defining the secure view. The plan may be modified to move a first operation that was outside the secure view boundary to within the secure view boundary to generate a second plan to optimize performance in view of limitations or restrictions placed by the secure view.

    PERFORMANCE OPTIMIZATIONS FOR SECURE OBJECTS EVALUATIONS

    公开(公告)号:US20250103593A1

    公开(公告)日:2025-03-27

    申请号:US18976635

    申请日:2024-12-11

    Applicant: Snowflake Inc.

    Abstract: A source table can be provided by a provider account in a data system. A secure view of the source table is provided to one or more consumer accounts, the secure view limiting access to a subset of data in the source table. A plan to execute a command using the secure view may be generated, the plan including a secure view boundary on a subset of operations defining the secure view. The plan may be modified to move a first operation that was outside the secure view boundary to within the secure view boundary to generate a second plan to optimize performance in view of limitations or restrictions placed by the secure view.

    Performance optimizations for secure objects evaluations

    公开(公告)号:US12204541B2

    公开(公告)日:2025-01-21

    申请号:US18172688

    申请日:2023-02-22

    Applicant: Snowflake Inc.

    Abstract: A source table can be provided by a provider account in a data system. A secure view of the source table is provided to one or more consumer accounts, the secure view limiting access to a subset of data in the source table. A plan to execute a command using the secure view may be generated, the plan including a secure view boundary on a subset of operations defining the secure view. The plan may be modified to move a first operation that was outside the secure view boundary to within the secure view boundary to generate a second plan to optimize performance in view of limitations or restrictions placed by the secure view.

    Optimized validation of cached query plans

    公开(公告)号:US12277117B1

    公开(公告)日:2025-04-15

    申请号:US18649537

    申请日:2024-04-29

    Applicant: Snowflake Inc.

    Abstract: The subject technology receives a query, the query including a statement for performing the query. The subject technology performs a lookup operation on a stored plan cache based on the query. The subject technology performs, in response to a cache match of the query to a stored query plan in the stored plan cache based on the lookup operation, a validation process of the stored query plan. The subject technology determines whether the stored query plan is valid based on the validation process. The subject technology performs, in response to determining that the stored query plan is valid, a program building process for the stored query plan to generate a final query plan. The subject technology sends the final query plan to an execution node for execution.

Patent Agency Ranking