QUERY REFRESH USING MULTIPLE PROCESSING PIPELINES

    公开(公告)号:US20250117382A1

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

    申请号:US18988025

    申请日:2024-12-19

    Applicant: Snowflake Inc.

    Abstract: A system includes at least one hardware processor and at least one memory storing instructions that cause the at least one hardware processor to perform operations. The operations include generating a log of changes posted to a plurality of intermediate materialized tables (MTs) during execution of a query in a network-based database system. The query is associated with a source MT that the intermediate MTs depend on. The operations include rendering the log of changes into a dependency graph. The operations include configuring a plurality of processing pipelines based on the dependency graph. The operations include performing refreshes on one or more of the plurality of intermediate MTs in at least one of the plurality of processing pipelines to complete the refresh operation. The refreshes are performed responsive to detecting an instruction for a refresh operation on the source MT.

    Query execution using materialized tables

    公开(公告)号:US12189616B2

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

    申请号:US18353317

    申请日:2023-07-17

    Applicant: Snowflake Inc.

    Abstract: A method includes retrieving a plurality of materialized tables (MTs). Each of the plurality of MTs includes a lag duration and refers to a corresponding base table of a plurality of base tables. The lag duration indicates a maximum time period that a result of a prior refresh of a query on the corresponding base table can lag behind a current time instance. A plurality of time instances for the MT is determined based on the lag duration and a number of prior refreshes of the corresponding base table. A plurality of aligned time instances for the plurality of MTs is determined based on the plurality of time instances for each of the plurality of MTs. Refresh operations are scheduled for the plurality of MTs at one or more of the plurality of aligned time instances that are within the maximum time period.

    QUERY EXECUTION USING MATERIALIZED TABLES
    5.
    发明公开

    公开(公告)号:US20230401199A1

    公开(公告)日:2023-12-14

    申请号:US18353317

    申请日:2023-07-17

    Applicant: Snowflake Inc.

    CPC classification number: G06F16/2393 G06F11/3419

    Abstract: A method includes retrieving a plurality of materialized tables (MTs). Each of the plurality of MTs includes a lag duration and refers to a corresponding base table of a plurality of base tables. The lag duration indicates a maximum time period that a result of a prior refresh of a query on the corresponding base table can lag behind a current time instance. A plurality of time instances for the MT is determined based on the lag duration and a number of prior refreshes of the corresponding base table. A plurality of aligned time instances for the plurality of MTs is determined based on the plurality of time instances for each of the plurality of MTs. Refresh operations are scheduled for the plurality of MTs at one or more of the plurality of aligned time instances that are within the maximum time period.

Patent Agency Ranking