An efficient hot/cold data separation scheme for storage optimization in consortium blockchain full nodes
摘要
Blockchain technology, as a decentralized and tamper-resistant data storage paradigm, has garnered widespread attention. However, its inherent requirement for full nodes to store complete historical data poses critical challenges, including storage bloat, escalating costs, and inefficient query performance. To address these challenges, this paper proposes a hot/cold separation storage optimization scheme for consortium blockchain full nodes. By leveraging access frequency and recency metrics, we design an LRU-2-based model to dynamically classify blocks into hot and cold categories. A LevelDB-indexed off-chain file system is developed to securely store cold data, while hot data remains on-chain for rapid accessibility. To ensure blockchain integrity, we further devise an on-chain/off-chain interaction protocol integrated with transparent data encryption (TDE) to safeguard off-chain data security. Experimental evaluations demonstrate that the proposed scheme reduces on-chain storage costs by 80%, enhances query throughput by 1.3–1.8