Patent ID: 11868315
Assignee: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 14:
15. A computer program product, comprising a non-transitory computer-readable medium storing computer executable instructions, that when executed by one or more processors, perform the operations of:
reserving a first region of a database, wherein the first region is blank and is not used for current data storage, and the first region is reserved for storing data of a first key-value type of a plurality of key-value types during current data storage, the first region is a first key-value range between a first key-value and a second key-value, and wherein reserving the first region of the database comprises:
pre-estimating, according to a type of currently stored data, a second key-value range, and reserving the first region to have the first key-value range according to the pre-estimating to determine that that the currently stored data does not fall into the blank first region, wherein the type of currently stored data is the first key-value type of the plurality of key-value types;

receiving a region split command, when first data of the first key-value type is to be stored in the first region, wherein the region split command comprises split point information of the first region, and the region split point information indicates at least one point located inside the blank first region to use to split the first region;
updating a state identifier of the first region in a state table to a first identifier according to the region split command, wherein the first identifier indicates that the first region no longer provides a read/write service;
splitting the first region into at least two second regions according to the split point information recorded in the region split command;
recording state identifiers of the at least two second regions in the state table as second identifiers, wherein the second identifiers indicate that the at least two second regions can provide a read/write service; and
instructing to record, in a metadata table, location information of a region node on which the at least two second regions are located, so that the region node on which the at least two second regions are located can be found according to the metadata table.