METHOD AND DEVICE FOR SNAPSHOTTING METADATA, AND STORAGE MEDIUM

    公开(公告)号: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.

    METHOD AND APPARATUS FOR READING DATA, ELECTRONIC DEVICE AND STORAGE MEDIUM

    公开(公告)号: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.

Patent Agency Ranking