CN110888883A - Data storage method, device, system and storage medium - Google Patents

Data storage method, device, system and storage medium Download PDF

Info

Publication number
CN110888883A
CN110888883A CN201911171448.9A CN201911171448A CN110888883A CN 110888883 A CN110888883 A CN 110888883A CN 201911171448 A CN201911171448 A CN 201911171448A CN 110888883 A CN110888883 A CN 110888883A
Authority
CN
China
Prior art keywords
data
downloaded
block
data storage
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911171448.9A
Other languages
Chinese (zh)
Inventor
付贵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Haiyi Tongzhan Information Technology Co Ltd
Original Assignee
Beijing Haiyi Tongzhan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Haiyi Tongzhan Information Technology Co Ltd filed Critical Beijing Haiyi Tongzhan Information Technology Co Ltd
Priority to CN201911171448.9A priority Critical patent/CN110888883A/en
Publication of CN110888883A publication Critical patent/CN110888883A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2282Tablespace storage structures; Management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The invention discloses a data storage method, a device, a system and a storage medium, and relates to the technical field of data processing. The data storage method comprises the following steps: uploading data with a preset format to a block chain through a local corresponding block chain link point; downloading data from the local corresponding block chain node, wherein the downloaded data comprises data uploaded by the local corresponding block chain link point and data uploaded by other block chain link points and having a preset format; and storing the downloaded data in a database. Since the data is downloaded from the blockchain node, the complete data in the system can be obtained. In addition, as the format of the uploaded data is unified in the data uploading stage, the data downloaded from the blockchain node also has a preset format, so that the downloaded complete data can be analyzed and processed. The uploading and downloading independent processing mode can ensure the integrity of the data and improve the uploading and downloading efficiency of the data.

Description

Data storage method, device, system and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data storage method, apparatus, system, and storage medium.
Background
In the related art, a blockchain-based application writes a copy of data into a database during the process of synchronizing data to a blockchain, so that the related data can be quickly displayed on a page. The database stores the identification of the currently written data in the blockchain, and is used for verifying whether the current data is tampered.
In some blockchain application scenarios based on federation chain deployment, there are multiple participants and multiple blockchain nodes, and the security level of each participant is relatively high, requiring independent deployment of blockchain nodes. Each participant needs to independently deploy an application and synchronize data of a local corresponding blockchain node.
Disclosure of Invention
The inventor finds that, after analysis, in the related art, data is uploaded to a blockchain and backed up in a local database at the same time, so that only the data uploaded by the related art can be stored, and data of other nodes in the blockchain system cannot be obtained. And thus the integrity of the data in the database cannot be guaranteed.
The embodiment of the invention aims to solve the technical problem that: how to improve the integrity of the data synchronization of the block chain.
According to a first aspect of some embodiments of the present invention, there is provided a data storage method, comprising: uploading data with a preset format to a block chain through a local corresponding block chain link point; downloading data from the local corresponding block chain node, wherein the downloaded data comprises data uploaded by the local corresponding block chain link point and data uploaded by other block chain link points and having a preset format; and storing the downloaded data in a database.
In some embodiments, the data storage method further comprises: and converting the acquired data into data which corresponds to the service type and has a preset format according to the service type of the acquired data, wherein the data with the preset format comprises an identifier of the service type.
In some embodiments, the data having the preset format is represented in JSON format.
In some embodiments, storing the downloaded data in the database comprises: and analyzing the downloaded data according to a preset format, and storing an analysis result into a database.
In some embodiments, the data having the preset format includes one or more preset fields and a value of each field; analyzing the downloaded data according to a preset format, and storing an analysis result into a database, wherein the analysis result comprises the following steps: analyzing the downloaded data according to the corresponding relation between the preset fields and the fields in the data table of the database to obtain the values corresponding to the fields in the data table; generating an insertion statement corresponding to the downloaded data according to a preset template of an insertion statement instruction and values corresponding to all fields in a data table; and executing the insertion statement corresponding to the downloaded data in the database.
In some embodiments, downloading data from the locally corresponding blockchain node comprises: acquiring the block height corresponding to downloaded data; determining a block corresponding to the height of the block corresponding to the downloaded data plus 1 as a block to be downloaded; acquiring data in each transaction record from the block to be downloaded; and updating the block height corresponding to the downloaded data to be the result of adding 1 to the original value.
In some embodiments, the data storage method further comprises: and acquiring the current block height of the block chain from the locally corresponding block chain node, so as to determine the block corresponding to the block height corresponding to the downloaded data plus 1 as the block to be downloaded under the condition that the current block height of the block chain is greater than the block height corresponding to the downloaded data.
In some embodiments, obtaining the data in each transaction record from the block to be downloaded includes: establishing a plurality of concurrent tasks according to the number of transaction records in the block to be downloaded; and acquiring the data of each transaction record in the block to be downloaded through the established concurrent task.
In some embodiments, the blockchain nodes are blockchain link points in the federation chain, each blockchain link point corresponding to a blockchain-based gateway for uploading data having a predetermined format into the blockchain through the corresponding blockchain link point.
According to a second aspect of some embodiments of the present invention there is provided a data storage device comprising: the uploading module is configured to upload data with a preset format to the block chain through the local corresponding block chain link point; the downloading module is configured to download data from the locally corresponding block link node, wherein the downloaded data comprises data uploaded by the locally corresponding block link node and data uploaded by other block link nodes and having a preset format; a storage module configured to store the downloaded data in a database.
According to a third aspect of some embodiments of the present invention there is provided a data storage device comprising: a memory; and a processor coupled to the memory, the processor configured to perform any of the foregoing data storage methods based on instructions stored in the memory.
According to a fourth aspect of some embodiments of the present invention there is provided a data storage system comprising: a plurality of any of the foregoing data storage devices; and a plurality of block link nodes, each block link node corresponding to one or more data storage devices.
According to a fifth aspect of some embodiments of the present invention, there is provided a computer readable storage medium having a computer program stored thereon, wherein the program when executed by a processor implements any one of the data storage methods described above.
Some embodiments of the above invention have the following advantages or benefits: since the data is downloaded from the blockchain node, the complete data in the system can be obtained. In addition, as the format of the uploaded data is unified in the data uploading stage, the data downloaded from the blockchain node also has a preset format, so that the downloaded complete data can be analyzed and processed. The uploading and downloading independent processing mode can ensure the integrity of the data and improve the uploading and downloading efficiency of the data.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 illustrates a flow diagram of a data storage method according to some embodiments of the inventions.
FIG. 2 illustrates a flow diagram of a data download method according to some embodiments of the inventions.
FIG. 3 illustrates a flow diagram of a data parsing method according to some embodiments of the invention.
FIG. 4 illustrates a schematic diagram of a data storage device according to some embodiments of the invention.
FIG. 5 illustrates a block diagram of a data storage system according to some embodiments of the invention.
FIG. 6 illustrates a block diagram of a data storage device according to further embodiments of the present invention.
FIG. 7 illustrates a schematic diagram of a data storage device according to further embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective portions shown in the drawings are not drawn in an actual proportional relationship for the convenience of description.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
FIG. 1 illustrates a flow diagram of a data storage method according to some embodiments of the inventions. As shown in fig. 1, the data storage method of this embodiment includes steps S102 to S106.
In step S102, data with a preset format is uploaded to the block chain through the locally corresponding block link point.
The data stored in the block chain has a uniform preset format, that is, before different data uploading parties upload data through respective corresponding block chain link points, the data needs to be converted into a uniform format. In some embodiments, the acquired data is converted into data with a preset format corresponding to the service type according to the service type of the acquired data, wherein the data with the preset format includes an identifier of the service type.
For example, if the data to be uploaded is obtained by the user by filling in the input boxes in the front-end web page, the values input by the user in each input box and transmitted by the front end can be obtained from the background server, and the data in the preset format is generated according to the corresponding relationship between the identifier of the input box and the fields in the preset format.
In some embodiments, the type of data may be various, such as user data, order data, and so forth. Each data type may correspond to data in a predetermined format.
In some embodiments, the data having the predetermined format is represented in a JSON (JavaScript Object Notation) format. An exemplary default format is as follows:
Figure BDA0002288828510000051
in step S104, data is downloaded from the locally corresponding block link node, where the downloaded data includes data uploaded by the locally corresponding block link node and data uploaded by other block link nodes and having a preset format. The downloading process of the data is independent from the uploading process.
In the blockchain system, each blockchain link point commonly maintains one 'account book', so that the blockchain link point has data uploaded by other blockchain link points besides the data uploaded by the blockchain link point. Thus, complete data can be obtained from the blockchain node.
The block chain is made up of blocks. A block is a data packet carrying transaction data on a blockchain network, and is a data structure marked with a timestamp and a hash value of a previous block, and a blockchain node verifies the block and confirms the content in the block through a consensus mechanism of the network.
In step S106, the downloaded data is stored in the database.
In some embodiments, the downloaded data is parsed according to a preset format, and the parsing result is stored in a database.
The above embodiment can obtain complete data in the system because the data is downloaded from the blockchain node. In addition, as the format of the uploaded data is unified in the data uploading stage, the data downloaded from the blockchain node also has a preset format, so that the downloaded complete data can be analyzed and processed. The uploading and downloading independent processing mode can ensure the integrity of the data and improve the uploading and downloading efficiency of the data.
An embodiment of downloading data is described below with reference to fig. 2.
FIG. 2 illustrates a flow diagram of a data download method according to some embodiments of the inventions. As shown in fig. 2, the data downloading method of this embodiment includes steps S202 to S208.
In step S202, the block height corresponding to the downloaded data is obtained.
The block height generally refers to the number of blocks in the block chain, and the downloaded data represents the number of blocks corresponding to the downloaded data. The block height corresponding to the downloaded data can be recorded locally.
In some embodiments, the current block height of the blockchain, i.e. the number of blocks in the current blockchain, may be obtained from the locally corresponding blockchain node, and it is determined whether the current block height of the blockchain is greater than the block height corresponding to the downloaded data. If yes, starting a subsequent downloading process; otherwise, it indicates that there is no new data to upload in the block chain after the last download, so the download process is not executed.
In step S204, the block corresponding to the block height corresponding to the downloaded data plus 1 is determined as the block to be downloaded.
In step S206, the data in each transaction record is obtained from the block to be downloaded.
One block includes a plurality of "transaction records". In the blockchain technology, a piece of data in a block is often referred to as a "transaction record", but the recorded content may be information related to a transaction or information unrelated to the transaction.
In some embodiments, a plurality of concurrent tasks are established according to the number of transaction records in the block to be downloaded; and acquiring the data of each transaction record in the block to be downloaded through the established concurrent task. Thus, when the amount of data in one block is large, data can be downloaded in batches in a concurrent manner.
In step S208, the block height corresponding to the downloaded data is updated to the result of adding 1 to the original value. Then, the process returns to step S204 until the block height corresponding to the downloaded data is equal to the current block height of the block chain.
By the method of the embodiment, the data can be sequentially downloaded according to the generation sequence of the blocks in the block chain, so that the full data in the system can be completely and efficiently obtained.
An embodiment of parsing the downloaded data is described below with reference to fig. 3.
FIG. 3 illustrates a flow diagram of a data parsing method according to some embodiments of the invention. As shown in fig. 3, the data analysis method of this embodiment includes steps S302 to S306.
In step S302, the downloaded data is analyzed according to the corresponding relationship between the preset fields and the fields in the data table of the database, and the values corresponding to the fields in the data table are obtained.
In some embodiments, a string matching method such as a regular matching expression may be used to obtain the values of the fields in the downloaded data, for example, for the data { id:0001, type:1, time:201901011200, content: { name: a, age:21} }, the values of the fields may be obtained by identifying the content behind the fields of "id", "type", "time", "name", and "age". Table 1 shows the correspondence between the fields in the preset format and the fields in the data table USER.
TABLE 1
Fields in a Preset Format Fields in data tables
id userId
time transTime
name userName
age userAge
Thus, the values of the corresponding fields in the data table USER can be known.
In step S304, an insert statement corresponding to the downloaded data is generated according to a preset template of the insert statement instruction and a value corresponding to each field in the data table.
For example, the template of the insert statement instruction is "insert inter USER (userId, transit time, username, userAge) values (< v1>, < v2>, < v3>, < v4 >); ", < v1>, < v2>, < v3>, < v4> respectively represent the corresponding values. The insert statement generated from the template is, for example, "insert into USER (userId, transit time, username, userAge) values (0001,201901011200, a, 21); ".
In step S306, an insert statement corresponding to the downloaded data is executed in the database.
Thus, information in the downloaded data may be stored in the database.
By the method of the embodiment, the downloaded data can be analyzed according to the preset format, and then the corresponding insertion statement is generated and executed, so that the data analysis and storage process can be automatically completed, and the data storage efficiency is improved.
An embodiment of the data storage device of the present invention is described below with reference to fig. 4.
FIG. 4 illustrates a schematic diagram of a data storage device according to some embodiments of the invention. As shown in fig. 4, the data storage apparatus 400 of this embodiment includes: an upload module 4100 configured to upload data having a preset format into a block chain through a locally corresponding block link point; a download module 4200 configured to download data from a locally corresponding block link node, where the downloaded data includes data uploaded by the locally corresponding block link node and data uploaded by other block link nodes and having a preset format; a storage module 4300 configured to store the downloaded data in a database.
In some embodiments, the storage device 400 further comprises: the data conversion module 4400 is configured to convert the acquired data into data with a preset format corresponding to the service type according to the service type of the acquired data, where the data with the preset format includes an identifier of the service type.
In some embodiments, the data having the preset format is represented in JSON format.
In some embodiments, the storage module 4300 is further configured to parse the downloaded data according to a preset format and store the parsing result in a database.
In some embodiments, the data having the preset format includes one or more preset fields and a value of each field; the storage module 4300 is further configured to analyze the downloaded data according to a corresponding relationship between the preset fields and fields in a data table of the database, so as to obtain values corresponding to the fields in the data table; generating an insertion statement corresponding to the downloaded data according to a preset template of an insertion statement instruction and values corresponding to all fields in a data table; and executing the insertion statement corresponding to the downloaded data in the database.
In some embodiments, the download module 4200 is further configured to obtain a block height corresponding to the downloaded data; determining a block corresponding to the height of the block corresponding to the downloaded data plus 1 as a block to be downloaded; acquiring data in each transaction record from the block to be downloaded; and updating the block height corresponding to the downloaded data to be the result of adding 1 to the original value.
In some embodiments, the downloading module 4200 is further configured to obtain the current block height of the blockchain from the locally corresponding blockchain node, so as to determine, when the current block height of the blockchain is greater than the block height corresponding to the downloaded data, a block corresponding to the block height corresponding to the downloaded data plus 1 as the block to be downloaded.
In some embodiments, the download module 4200 is further configured to establish a plurality of concurrent tasks according to the number of transaction records in the tile to be downloaded; and acquiring the data of each transaction record in the block to be downloaded through the established concurrent task.
An embodiment of the data storage system of the present invention is described below with reference to FIG. 5.
FIG. 5 illustrates a block diagram of a data storage system according to some embodiments of the invention. As shown in fig. 5, the data storage system 50 of this embodiment includes: a plurality of data storage devices 510; and a plurality of block chain nodes 520, each block chain node corresponding to one or more data storage devices 510.
In some embodiments, block link points 520 are block link points in a federation chain, with each block chain node 520 corresponding to a block chain-based gateway that includes data storage 510 therein. A federation chain refers to a chain of blocks that specify that several enterprises collectively control a consensus mechanism.
FIG. 6 illustrates a block diagram of a data storage device according to further embodiments of the present invention. As shown in fig. 6, the data storage device 60 of this embodiment includes: a memory 610 and a processor 620 coupled to the memory 610, the processor 620 being configured to execute the data storage method of any of the preceding embodiments based on instructions stored in the memory 610.
Memory 610 may include, for example, system memory, fixed non-volatile storage media, and the like. The system memory stores, for example, an operating system, an application program, a Boot Loader (Boot Loader), and other programs.
FIG. 7 illustrates a schematic diagram of a data storage device according to further embodiments of the present invention. As shown in fig. 7, the data storage device 70 of this embodiment includes: the memory 710 and the processor 720 may further include an input/output interface 730, a network interface 740, a storage interface 750, and the like. These interfaces 730, 740, 750, as well as the memory 710 and the processor 720, may be connected, for example, by a bus 760. The input/output interface 730 provides a connection interface for input/output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 740 provides a connection interface for various networking devices. The storage interface 750 provides a connection interface for external storage devices such as an SD card and a usb disk.
An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, wherein the program is configured to implement any one of the aforementioned data storage methods when executed by a processor.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (13)

1. A method of data storage, comprising:
uploading data with a preset format to a block chain through a local corresponding block chain link point;
downloading data from the local corresponding block chain node, wherein the downloaded data comprises data uploaded by the local corresponding block chain link point and data uploaded by other block chain link points and having a preset format;
and storing the downloaded data in a database.
2. The data storage method of claim 1, further comprising:
and converting the acquired data into data which corresponds to the service type and has a preset format according to the service type of the acquired data, wherein the data with the preset format comprises an identifier of the service type.
3. The data storage method according to claim 1, wherein the data having the preset format is represented in a JSON format.
4. The data storage method of claim 1, wherein said storing the downloaded data into a database comprises:
and analyzing the downloaded data according to a preset format, and storing an analysis result into a database.
5. The data storage method of claim 4, wherein the data having the preset format comprises one or more preset fields and a value of each field;
the analyzing the downloaded data according to the preset format and storing the analysis result in the database comprises:
analyzing the downloaded data according to the corresponding relation between the preset fields and the fields in the data table of the database to obtain the values corresponding to the fields in the data table;
generating an insertion statement corresponding to the downloaded data according to a preset template of an insertion statement instruction and values corresponding to all fields in a data table;
and executing the insertion statement corresponding to the downloaded data in a database.
6. The data storage method of claim 1, wherein said downloading data from a locally corresponding blockchain node comprises:
acquiring the block height corresponding to downloaded data;
determining a block corresponding to the height of the block corresponding to the downloaded data plus 1 as a block to be downloaded;
acquiring data in each transaction record from the block to be downloaded;
and updating the block height corresponding to the downloaded data to be the result of adding 1 to the original value.
7. The data storage method of claim 6, further comprising:
and acquiring the current block height of the block chain from the locally corresponding block chain node, so as to determine the block corresponding to the block height corresponding to the downloaded data plus 1 as the block to be downloaded under the condition that the current block height of the block chain is greater than the block height corresponding to the downloaded data.
8. The data storage method of claim 6, wherein the obtaining data in each transaction record from the block to be downloaded comprises:
establishing a plurality of concurrent tasks according to the number of transaction records in the block to be downloaded;
and acquiring the data of each transaction record in the block to be downloaded through the established concurrent task.
9. The data storage method of claim 1, wherein the blockchain nodes are blockchain link points in a federation chain, each blockchain link point corresponding to a blockchain-based gateway for uploading data having a preset format into the blockchain through the corresponding blockchain link point.
10. A data storage device comprising:
the uploading module is configured to upload data with a preset format to the block chain through the local corresponding block chain link point;
the downloading module is configured to download data from the locally corresponding block link node, wherein the downloaded data comprises data uploaded by the locally corresponding block link node and data uploaded by other block link nodes and having a preset format;
a storage module configured to store the downloaded data in a database.
11. A data storage device comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the data storage method of any of claims 1-9 based on instructions stored in the memory.
12. A data storage system, comprising:
a plurality of data storage devices as claimed in claim 10 or 11; and
a plurality of block chain nodes, each block chain node corresponding to one or more data storage devices.
13. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements a data storage method as claimed in any one of claims 1 to 9.
CN201911171448.9A 2019-11-26 2019-11-26 Data storage method, device, system and storage medium Pending CN110888883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911171448.9A CN110888883A (en) 2019-11-26 2019-11-26 Data storage method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911171448.9A CN110888883A (en) 2019-11-26 2019-11-26 Data storage method, device, system and storage medium

Publications (1)

Publication Number Publication Date
CN110888883A true CN110888883A (en) 2020-03-17

Family

ID=69748825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911171448.9A Pending CN110888883A (en) 2019-11-26 2019-11-26 Data storage method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN110888883A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111241205A (en) * 2020-04-26 2020-06-05 北京启迪区块链科技发展有限公司 Federation block chain bottom layer based trusted data synchronization method, network structure and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain
WO2018149385A1 (en) * 2017-02-17 2018-08-23 阿里巴巴集团控股有限公司 Blockchain system and data storage method and apparatus
CN109086325A (en) * 2018-06-29 2018-12-25 阿里巴巴集团控股有限公司 Data processing method and device based on block chain
CN110113408A (en) * 2019-04-30 2019-08-09 杭州复杂美科技有限公司 A kind of block synchronous method, equipment and storage medium
WO2019178300A1 (en) * 2018-03-13 2019-09-19 Blockpoint Systems Inc. Relational blockchain database

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874393A (en) * 2017-01-13 2017-06-20 北京众享比特科技有限公司 Synchronizing traffic data method and system, Database Systems based on block chain
WO2018149385A1 (en) * 2017-02-17 2018-08-23 阿里巴巴集团控股有限公司 Blockchain system and data storage method and apparatus
WO2019178300A1 (en) * 2018-03-13 2019-09-19 Blockpoint Systems Inc. Relational blockchain database
CN109086325A (en) * 2018-06-29 2018-12-25 阿里巴巴集团控股有限公司 Data processing method and device based on block chain
CN110113408A (en) * 2019-04-30 2019-08-09 杭州复杂美科技有限公司 A kind of block synchronous method, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111241205A (en) * 2020-04-26 2020-06-05 北京启迪区块链科技发展有限公司 Federation block chain bottom layer based trusted data synchronization method, network structure and server

Similar Documents

Publication Publication Date Title
US20160179495A1 (en) Device and method for packaging application
CN109951547B (en) Transaction request parallel processing method, device, equipment and medium
WO2019000630A1 (en) Multi-task scheduling method and system, application server and computer-readable storage medium
CN109919691B (en) Data processing system, method and device
CN112486915B (en) Data storage method and device
CN112988608B (en) Data testing method and device, computer equipment and storage medium
WO2022000888A1 (en) Apparatus and method for executing customized artificial intelligence production line, and device and medium
CN104052626A (en) Method, device and system for configuring network element data
CN111078573A (en) Test message generation method and device
CN110888883A (en) Data storage method, device, system and storage medium
US20040168064A1 (en) System of generating procedure for digital signature and encryption to XML
CN103646015B (en) Transmission, the method and system for receiving and transmitting XML message
CN105302789A (en) Editing method of health information shared document template buffer storage
US20120109928A1 (en) Synchronization scheme for distributed, parallel crawling of interactive client-server applications
CN112597023A (en) Case management method and device based on guide picture, computer equipment and storage medium
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data
CN111078529A (en) Client write-in module testing method and device and electronic equipment
CN111324645A (en) Data processing method and device for block chain
WO2016110204A1 (en) Processing of process object, and method and device for generating plug-in
US9052906B2 (en) Modularized customization of a model in a model driven development environment
CN114371866A (en) Version reconfiguration test method, device and equipment of service system
CN113535221A (en) Method and device for managing application version
CN106469086B (en) Event processing method and device
JP2017151594A (en) Supporting device, supporting method, and program
US20120192011A1 (en) Data processing apparatus that performs test validation and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Information Technology Co.,Ltd.

Address before: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Shuke Haiyi Information Technology Co.,Ltd.

Address after: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Shuke Haiyi Information Technology Co.,Ltd.

Address before: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: BEIJING HAIYI TONGZHAN INFORMATION TECHNOLOGY Co.,Ltd.