Patent ID: 11966412
Assignee: JINGDONG TECHNOLOGY INFORMATION TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 17:
18. A non-transitory computer-readable storage medium, having a computer program stored thereon, when the computer program is executed by a processor, the following steps are implemented:
analyzing a Value in Key-Value data to determine a data type of the Value when the Key-Value data needs to be stored, wherein the Key-Value data is blockchain data of Key-Value structure;
determining a target table corresponding to the data type of the Value according to a data type information table, wherein the data type information table is used to store storage information of all data types, and storage information of the data type comprises a table corresponding to the data type, a mapping relationship between a service field of the Value of the data type and a table field in a corresponding table, and a data format of the Value of the data type; and
writing the Key-Value data into the target table according to the data type information table,
wherein the Value comprises a data type, a data format, a number of fields, and a value of the Value, and
wherein the determining the target table corresponding to the data type of the Value according to the data type information table comprises:
judging whether the data type of the Value exists in the data type information table;
acquiring the storage information of the data type of the Value from the data type information table if the data type of the Value exists in the data type information table;
judging whether the data format and the number of fields in the Value are consistent with the data format and the number of fields in storage information according to the storage information of the data type of the Value; and
acquiring the target table corresponding to the data type of the Value from the data type information table if the data format and the number of fields in the Value are consistent with the data format and the number of fields in the storage information.