Node Memory Cache for Faster Reads on Bifurcated Blockchains

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

In blockchain systems, simultaneous mining by multiple miner nodes can lead to blockchain bifurcation, resulting in reduced data access efficiency when querying or verifying transactions.

Innovation Solution

Implementing a data processing method and apparatus using node internal memory to acquire transactions from a chain reading cache, invoke data reading contracts, and execute transactions based on target read data, storing results in a write cache before writing blocks into the bifurcated blockchain.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If multiple miner nodes simultaneously write blocks into the blockchain database, then the blockchain bifurcation phenomenon occurs, but the data access efficiency is reduced

Engineering Contradiction:
Improveblock production rateVSAvoiddata access time
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The patent divides the blockchain data access process into two segments: (1) simultaneous block production and writing into bifurcated blockchain is allowed to maintain high productivity, and (2) data reading operations are redirected to query the chain reading cache first before accessing the blockchain database. This segmentation resolves the contradiction by allowing write operations to proceed in parallel while optimizing read operations through cached data.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent implements preliminary action by pre-loading transaction data into the chain reading cache before actual data access occurs. When blocks are mined and written into the bifurcated blockchain, the corresponding transaction data is simultaneously cached in the chain reading cache, so that subsequent data access operations can be served from the cache without querying the blockchain database, thus reducing data access time.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If data is stored in the blockchain database, then data persistence is ensured, but data access efficiency decreases due to database access overhead

Engineering Contradiction:
Improvedata persistenceVSAvoiddata access efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent introduces the chain reading cache as an intermediary layer between the blockchain database and data access operations. The cache stores copies of transaction data from blocks in the bifurcated blockchain, allowing frequent data access operations to be served from the fast cache memory rather than querying the slower blockchain database, thus improving data access efficiency while maintaining data persistence through the original database storage.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Measurement precision

If all transactions are verified from the blockchain, then data accuracy is ensured, but the verification speed is reduced

Engineering Contradiction:
Improvetransaction verification accuracyVSAvoidverification speed
Core Design Contradiction:
Measurement precisionVSSpeed

Solution Approach 1:

The patent applies preliminary action by pre-caching transaction data in the chain reading cache before verification operations. When transaction verification is needed, the system first queries the cached data which is already prepared and available, significantly reducing the time required to retrieve and verify transaction data compared to querying the blockchain database each time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The verification process is segmented into two paths: (1) Quick verification path using cached data from the chain reading cache for speed, and (2) Full verification path querying the blockchain database for complete accuracy when needed. This segmentation allows most verifications to proceed quickly while maintaining the ability to perform complete verification when required.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12493876B2Data processing method and apparatus based on node internal memory, device and medium
Publication Date: 2025.12.09 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US12493876B2 patent drawing
  • US12493876B2 patent drawing
  • US12493876B2 patent drawing

AI summary

A data processing method and apparatus based on a node internal memory, a device and a computer readable storage medium are provided. The method includes: acquiring a data reading contract associated with a transaction in a first block from a chain reading cache of the node internal memory; invoking the data reading contract to acquire a write cache mapping table associated with the first block, and determining target read data associated with the transaction based on a first block cache of the first block in the write cache mapping table; and executing the transaction based on the target read data, storing target cached data, corresponding to a result of executing of the transaction, to the first block cache, and writing the first block into a bifurcated blockchain.