US 12,443,355 B2
Data storage methods, apparatuses, devices, and storage media
Mengyu Li, Hangzhou (CN)
Assigned to Alipay (Hangzhou) Information Technology Co., Ltd., Hangzhou (CN)
Filed by ALIPAY (HANGZHOU) INFORMATION TECHNOLOGY CO., LTD., Zhejiang (CN)
Filed on Oct. 18, 2023, as Appl. No. 18/489,446.
Claims priority of application No. 202211274661.4 (CN), filed on Oct. 18, 2022.
Prior Publication US 2024/0126465 A1, Apr. 18, 2024
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/064 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0679 (2013.01)] 15 Claims
OG exemplary drawing
 
1. A computer-implemented method for data storage, comprising:
receiving data to be stored, wherein the data comprise data corresponding to a plurality of fields;
determining whether a size of the data exceeds a predetermined threshold; and
in response to determining that the size of the data exceeds the predetermined threshold:
determining a field in the plurality of fields that corresponds to a largest portion of the data;
splitting the largest portion of the data to obtain data blocks;
determining block identifiers of the data blocks based on a sequence of the data blocks;
storing a first key-value pair, wherein a key of the first key value pair comprises a data identifier of the data, and a value of the first key-value pair comprises a range of the block identifiers; and
storing second key-value pairs, wherein a key of a second key-value pair comprises a block identifier, and a value of the second key-value pair comprises a corresponding data block;
storing a first portion of the data blocks and corresponding block identifiers in a graph database; and
after a network interruption, resuming to store a second portion of the data blocks and corresponding block identifiers in the graph database.