CACHING METADATA FOR A DATABASE TABLE

    公开(公告)号:US20210073207A1

    公开(公告)日:2021-03-11

    申请号:US17086253

    申请日:2020-10-30

    Applicant: Snowflake Inc.

    Abstract: The subject technology caches, in connection with processing a first query, one or more table-metadata files in at least one of a current version set of one or more table-metadata files and a new version set of one or more table-metadata files, the new version set of one or more table-metadata files comprising table metadata for a new version of a database table. The subject technology receives a subsequent query directed to the database table. The subject technology downloads, in connection with processing the subsequent query, at least one uncached table-metadata file in a scan set of table-metadata files for the subsequent query. The subject technology processes the subsequent query using the at least one uncached table-metadata file.

    Database metadata in immutable storage

    公开(公告)号:US10713238B2

    公开(公告)日:2020-07-14

    申请号:US15812892

    申请日:2017-11-14

    Applicant: Snowflake Inc.

    Abstract: A method for a database system includes storing table data for a database, the table data including information in rows and columns of one or more database tables. The method includes storing metadata on immutable storage, the metadata including information about the table data for the database. In one embodiment, mutable metadata may be periodically consolidated in the background to create new versions of metadata files and which allows for deletions of old metadata files and old data files.

    Scalable compaction for a distributed database

    公开(公告)号:US12222960B2

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

    申请号:US18326683

    申请日:2023-05-31

    Applicant: Snowflake Inc.

    Abstract: The subject technology performs, using asynchronous threads of execution nodes of a distributed database, asynchronous transformation and compaction of key-value pairs of data that correspond to a plurality of transactional queries, the asynchronous threads transforming the key-value pairs from an initial format to a commit format that includes a commit time of data committed to the distributed database, the asynchronous threads compacting the key-value pairs by deleting the key-value pairs in the initial format. The subject technology processes, using transactional threads in the execution nodes, the plurality of transactional queries to generate results data, the asynchronous threads performing the asynchronous transformation and compaction while the transactional threads generate the results data. The subject technology stores the results data.

    Concurrency control for transactions in database systems

    公开(公告)号:US11899648B2

    公开(公告)日:2024-02-13

    申请号:US17821581

    申请日:2022-08-23

    Applicant: Snowflake Inc.

    CPC classification number: G06F16/2322 G06F16/2365 G06F16/2379

    Abstract: The subject technology inserts, by a first transaction, a new version of an object, the first transaction including a first statement to perform an update operation to a row in a first table, the object corresponding to data in the row to be updated, the first statement including information comprising an object key associated with the object. The subject technology performs, by a second transaction, a range read, the range read including information indicating the object key. The subject technology receives a set of conflicting transactions from the range read. The subject technology determines that a conflict occurred between the first transaction and a third transaction from the set of conflicting transactions. The subject technology performs a restart of the first transaction in response to determining that the conflict occurred.

    LONG-LIVED STATEMENTS OPTIMIZATIONS IN A DATABASE SYSTEM

    公开(公告)号:US20230315720A1

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

    申请号:US18326356

    申请日:2023-05-31

    Applicant: Snowflake Inc.

    CPC classification number: G06F16/2379 G06F9/524 G06F16/2365

    Abstract: The subject technology determines that a first visible version of a key is not one of a N number of newest versions of the key based on searching for the key in a regular space to locate the first visible version of the key. The subject technology performs a search of an undo space to locate a second visible version of the key. The subject technology determines whether the first visible version or the second visible version of the key is newer. The subject technology provides a newer version of the key between the first visible version and the second visible version of the key.

    Managing concurrent transactions in database systems

    公开(公告)号:US11709818B2

    公开(公告)日:2023-07-25

    申请号:US17821670

    申请日:2022-08-23

    Applicant: Snowflake Inc.

    CPC classification number: G06F16/2329 G06F16/2282 G06F16/248 G06F16/24568

    Abstract: The subject technology receives a first transaction, the first transaction to be executed on linearizable storage. The subject technology assigns, prior to performing a read operation, a first read version to the first transaction, the first read version indicating a first version of the linearizable storage, the first read version corresponding to a particular timestamp of a current time. The subject technology performs the read operation from the first transaction on a table in a database. The subject technology determines a first commit version identifier corresponding to first data resulting from the read operation. The subject technology proceeds to perform a particular write operation from the first transaction. The subject technology determines that the first commit version identifier fails to match a second commit version identifier corresponding to a second transaction. The subject technology aborts the particular write operation from the first transaction.

Patent Agency Ranking