Block chain node data separate storage method and device
A node data, separate storage technology, applied in the direction of database distribution/replication, database indexing, electronic digital data processing, etc., can solve the problems of increased data storage space and high storage cost, so as to improve the speed and reduce the cost of storage space , the effect of reducing network bandwidth consumption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] In order to solve the problem of shortage of storage space caused by the continuous growth of blockchain system data, the present invention provides a method that defines blockchain data as hot, warm, and hot types, and compresses and stores them after separating cold and hot, so as to improve the utilization rate of system space. method. The method includes: when the block chain system reaches the preset cold data separation rule, such as reaching the preset height value, the block data of the block height within the set range can be compressed and stored, and index data can be generated; When cold data needs to be accessed, the cold data is obtained from the local cold database or the cold database of other nodes, decompressed and queried, and the data that meets the query conditions is written into the warm database to improve query efficiency. Newly added nodes can perform data synchronization by obtaining compressed cold data of different ranges from multiple nodes...
Embodiment 2
[0103] Figure 7 A schematic structural diagram of a block chain node data separation storage device 700 provided for an embodiment of this specification. Please refer to Figure 7 , in one embodiment, the blockchain node data separation storage device 700 includes:
[0104] A data determination module 701, configured to determine node data satisfying preset data separation and storage rules;
[0105] The data cold storage module 702 is used to perform a data cold storage operation on the blockchain node data that meets the preset data separation and storage rules, so that the data is stored in a cold database, and its working process is as follows:
[0106] Construct the transaction hash record index of the data, that is, record the transaction hash in all blocks within the cold storage range as an index table, and obtain a transaction record hash index table;
[0107] Compressing the data file to form a cold storage file, generating a hash of the cold storage file, that i...
Embodiment 3
[0128] Figure 8 It is a schematic structural diagram of an electronic device according to an embodiment of this specification. Please refer to Figure 8 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Wherein, the memory may include a memory, such as a high-speed random-access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Of course, the electronic device may also include hardware required by other services.
[0129] The processor, the network interface and the memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnection standard) bus or an EISA (Extended Industry StandardArchitecture, extended industry standard archi...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com