-
公开(公告)号:US20230012642A1
公开(公告)日:2023-01-19
申请号:US17933160
申请日:2022-09-19
Abstract: With the method for snapshotting metadata, in response to reaching a current snapshot moment, a second basic version number of a binary search tree in a database at the current snapshot moment is generated according to a first basic version number at a previous snapshot moment; during a process from the current snapshot moment to a next snapshot moment, whenever metadata in the database is updated, the binary search tree is updated according to the updated metadata, and an updated version number of the binary search tree after each update is generated according to the second basic version number; and in response to reaching the next snapshot moment, a snapshot operation is performed on binary search trees corresponding to all version numbers generated between the current snapshot moment and the next snapshot moment to generate snapshot information of the current snapshot moment.
-
2.
公开(公告)号:US20230014427A1
公开(公告)日:2023-01-19
申请号:US17933180
申请日:2022-09-19
Inventor: Biao Cao , Meng Wang , Yongqiang Yang
Abstract: A global secondary index method for a distributed database, includes: obtaining original data to be written in response to a database writing request; writing the original data into the distributed database; performing global secondary index processing on the original data written into the distributed database to obtain global secondary index data; establishing global secondary index tables between the global secondary index data and data table primary keys in the distributed database; and writing the global secondary index tables into an index shards based on an asynchronous processing manner.
-
公开(公告)号:US20230012881A1
公开(公告)日:2023-01-19
申请号:US17933191
申请日:2022-09-19
Inventor: Zhihui Yin , Biao Cao
Abstract: A method for reading data includes: receiving a data reading request; acquiring a data writing file in response to determining that the data reading request triggers a reading-writing conflict event, in which the data writing file includes a writing version number and transaction information; obtaining an adjusted writing version number by adjusting the writing version number based on the request version number in response to determining that the data reading request satisfies a version adjustment condition based on the request version number, the writing version number and the transaction information; and performing data reading based on the data reading address and the adjusted writing version number.
-
-