-
1.
公开(公告)号:US20240104116A1
公开(公告)日:2024-03-28
申请号:US18524784
申请日:2023-11-30
申请人: Snowflake Inc.
CPC分类号: G06F16/283 , G06F16/2264 , G06F16/284
摘要: The subject technology generates a nested object based on a set of metadata, the set of metadata including information linking the nested object to a table object associated with a base table. The subject technology generates a second table object associated with the nested object, the second table object representing a secondary index of the base table, the second table object including information linking the second table object to the nested object. The subject technology generates a second nested object based on a particular set of metadata, the particular set of metadata including information linking the second nested object to the table object. The subject technology generates a third table object associated with the second nested object, the third table object representing a particular secondary index of the base table, the third table object including information linking the third table object to the second nested object.
-
公开(公告)号:US20230325409A1
公开(公告)日:2023-10-12
申请号:US18326683
申请日:2023-05-31
申请人: Snowflake Inc.
发明人: Chen Luo , Alexander Miller , William Waddington , Zhaohui Zhang
CPC分类号: G06F16/273 , G06F16/2343 , G06F16/2379
摘要: 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.
-
公开(公告)号:US20230055715A1
公开(公告)日:2023-02-23
申请号:US17463353
申请日:2021-08-31
申请人: Snowflake Inc.
发明人: Chen Luo , Alexander Miller , William Waddington , Zhaohui Zhang
摘要: A distributed database compaction system can perform compaction for transactional queries in an asynchronous matter without affecting completion of the queries. The compaction system can implement asynchronous transformation of key pairs in the database, and older keys can be periodically purged using a scheduled compactor. Subsequent queries use the compacted stored keys to perform efficient queries with direct reads of committed transactions and more efficient access to key values stores of the distributed database.
-
公开(公告)号:US20220092050A1
公开(公告)日:2022-03-24
申请号:US17454368
申请日:2021-11-10
申请人: Snowflake Inc.
发明人: Chen Luo , Alexander Miller , William Waddington , Zhaohui Zhang
IPC分类号: G06F16/23
摘要: The subject technology inserts, by a first transaction, a new version of an object, the inserting corresponding to a first statement from the first transaction, the first statement including information indicating a first key, a first transaction identifier, a first statement number, and a first restart count. The subject technology performs, by a second transaction, a range read, the range read including information indicating the first key. The subject technology receives, after performing the range read, a set of conflicting transactions. The subject technology determines that a conflict occurred between the first transaction and a third transaction from the set of conflicting transactions.
-
5.
公开(公告)号:US20230401236A1
公开(公告)日:2023-12-14
申请号:US18171292
申请日:2023-02-17
申请人: Snowflake Inc.
CPC分类号: G06F16/283 , G06F16/284 , G06F16/2264
摘要: The subject technology receives, from a metadata database, information related to a base table. The subject technology determines a table object associated with the base table, the table object including a first set of metadata. The subject technology generates a nested object based on a second set of metadata, the second set of metadata including information linking the nested object to the table object. The subject technology generates a second table object associated with the nested object, the second table object representing a secondary index of the base table, the second table object including information linking the second table object to the nested object. The subject technology establishes a link between the second table object to the base table based on the nested object. The subject technology stores, in the metadata database, the nested object and the second table object.
-
公开(公告)号:US20230205785A1
公开(公告)日:2023-06-29
申请号:US18171297
申请日:2023-02-17
申请人: Snowflake Inc.
CPC分类号: G06F16/273 , G06F9/466
摘要: The subject technology receives, by a distributed database, transactional queries against a key-value database comprising data managed by key-value pairs. The subject technology performs, using asynchronous threads of execution nodes of the distributed database, asynchronous transformation and compaction of key-value pairs of data that corresponds to the plurality of transactional queries. The subject technology performs, using asynchronous threads of execution nodes of the distributed database, asynchronous transformation and compaction of a set of secondary indexes that corresponds to the plurality of transactional queries. 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.
-
公开(公告)号:US12061587B2
公开(公告)日:2024-08-13
申请号:US18171296
申请日:2023-02-17
申请人: Snowflake Inc.
CPC分类号: G06F16/2272 , G06F16/2264 , G06F16/283 , G06F16/284
摘要: The subject technology obtains a read timestamp of a first transaction. The subject technology performs a first read operation on a parent table associated with the first transaction to determine a set of committed versions of the parent table. The subject technology determines whether a key exists in the parent table based on the first transaction. The subject technology, in response to the key existing in the parent table, performs a first write operation on a child table. The subject technology determines whether a duplicate key exists in the child table. The subject technology, in response to determining that there is no duplicate key in the child table, determines whether there is a conflict with the key. The subject technology, in response to determining that there is no conflict with the key, performs a second write operation on a secondary index table of the child table.
-
公开(公告)号:US12056114B2
公开(公告)日:2024-08-06
申请号:US18326356
申请日:2023-05-31
申请人: Snowflake Inc.
发明人: Chen Luo , Alexander Miller , William Waddington , Zhaohui Zhang
CPC分类号: G06F16/2379 , G06F9/524 , G06F16/2365
摘要: 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.
-
公开(公告)号:US20230244655A1
公开(公告)日:2023-08-03
申请号:US17649737
申请日:2022-02-02
申请人: Snowflake Inc.
发明人: Chen Luo , Alexander Miller , William Waddington , Zhaohui Zhang
CPC分类号: G06F16/2379 , G06F16/2365 , G06F9/524
摘要: The subject technology performs a search for a key in a regular space to locate a first visible version of the key. The subject technology determines that the first visible version of the key is not one of a N number of newest versions 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.
-
公开(公告)号:US11709866B2
公开(公告)日:2023-07-25
申请号:US17463353
申请日:2021-08-31
申请人: Snowflake Inc.
发明人: Chen Luo , Alexander Miller , William Waddington , Zhaohui Zhang
CPC分类号: G06F16/273 , G06F16/2343 , G06F16/2379
摘要: A distributed database compaction system can perform compaction for transactional queries in an asynchronous matter without affecting completion of the queries. The compaction system can implement asynchronous transformation of key pairs in the database, and older keys can be periodically purged using a scheduled compactor. Subsequent queries use the compacted stored keys to perform efficient queries with direct reads of committed transactions and more efficient access to key values stores of the distributed database.
-
-
-
-
-
-
-
-
-