• Live Crypto Prices
  • Crypto News
    • Worldwide
      • Bitcoin
      • Ethereum
      • Altcoin
      • Blockchain
      • Regulation
    • Australian Crypto News
  • Education
    • Cryptocurrency For Beginners
    • Where to Buy Cryptocurrency
    • Where to Store Cryptos
    • Cryptocurrency Tax in Australia 2021
No Result
View All Result
CryptoABC.net
No Result
View All Result

BNB Chain Introduces Multi-Datastore Solution for BSC Geth

July 8, 2024
in Blockchain
Reading Time: 3min read
0 0
A A
0
BNB Chain Launches Zero-Knowledge Proof Scaling Tech
0
SHARES
8
VIEWS
ShareShareShareShareShare





BNB Chain has unveiled a new multi-datastore solution for its BNB Smart Chain (BSC) Geth nodes, aimed at tackling performance inefficiencies caused by the rapid increase in data volume. According to the BNB Chain Blog, the new approach addresses issues related to mixed data storage patterns, decreased querying efficiency, and optimization conflicts within a single key-value database.

Current Challenges

Currently, BSC node data is stored in a single key-value database instance, categorized by different prefixes. This setup has led to several complications:

  • Inefficient performance due to mixed storage of data with different patterns.
  • Decreased querying efficiency as the database size grows, particularly during execution processes.
  • Limited ability to optimize database parameters for different data patterns, as read and write optimizations often conflict.

The existing storage pattern includes a single KV store and two Ancient stores, which handle different types of data access patterns.

Proposed Solution

Multi-Database Approach

The new solution involves segregating the blockchain data into three distinct databases: Block Database, Trie Database, and Snapshot Database, each designed according to specific data schemas and access behaviors.

  • Block Database: Stores block-related data such as headers, bodies, receipts, difficulties, and historical block data.
  • Trie Database: Contains all trie nodes of the current state and historical state data of nearly 90,000 blocks.
  • Snapshot Database: Houses snapshot data, transaction indexes, contract codes, and other metadata. This database is read-intensive and frequently accessed during block execution.

Folder Structure

The new folder structure includes the original database within the chaindata/ folder, and introduces new block/ and state/ folders for storing block and trie data, respectively. An ancient folder is also included for storing historical data under each directory.

Impact and Performance

The multi-database approach is expected to enhance the performance, scalability, and maintainability of BSC nodes. By separating databases based on data schemas and access behaviors, the solution aims to reduce read/write latency and improve overall blockchain performance.

Block Database

The Block Database will store recent blocks in a key-value database before migrating them to the ancient database, reducing disk bandwidth usage. BNB Chain plans to retain only 20-30 recent blocks in the key-value database, as opposed to the previous 90,000 blocks, to align with its Proof-of-Stake-Authority consensus mechanism.

Trie Database

The Trie Database will handle the rapidly growing trie nodes of Merkle Patricia Tries (MPT). This separation will reduce database compaction costs and improve read/write speed, thereby enhancing block execution and verification performance.

Snapshot Database

By isolating snapshot data in its own database, BNB Chain aims to reduce the depth of the Log-Structured Merge (LSM) tree, improving read/write performance. During blockchain execution, frequent access to snapshot data will benefit from this reduced latency.

Testing Results

Tests conducted on an EC2 m6i.4xlarge machine with Geth v1.3.10 showed significant performance improvements. The multi-database setup outperformed the single database model, especially when databases were distributed across multiple disks.

ETH Adoption

This multi-database solution is also being contributed to the Ethereum Geth client. Discussions with Geth developers are ongoing, and the feature is expected to become part of the Ethereum Geth client upon merging the pull request.

Looking Forward

As blockchain data continues to grow, BNB Chain emphasizes the importance of building efficient storage models for different data types. The multi-database support helps in storing state data independently, paving the way for a high-performance state data engine. This initiative aims to make the BSC network more robust and efficient.

Image source: Shutterstock



Credit: Source link

ShareTweetSendPinShare
Previous Post

NEAR Protocol Sees Over 12 Million Unique Addresses In 30 Days

Next Post

Justin Sun Says TRON Team Designing New Gas-Free Stablecoin Transfer Solution

Next Post
Justin Sun Says TRON Team Designing New Gas-Free Stablecoin Transfer Solution

Justin Sun Says TRON Team Designing New Gas-Free Stablecoin Transfer Solution

You might also like

Insurance Giant Aon Partners With Coinbase and Paxos in Trialing Use of Stablecoins for Premium Payments

Insurance Giant Aon Partners With Coinbase and Paxos in Trialing Use of Stablecoins for Premium Payments

March 11, 2026
Why Bitcoin Can’t Be Explained By A Single Economic Cycle

Bitcoin Liquidation Map Predicts The Next Targets To Watch Out For

March 6, 2026
AAVE Price Prediction: Testing $240 Breakout with $280 Medium-Term Target Despite Bearish Momentum

AAVE Price Prediction: Targets $125 Recovery by Mid-March 2026

March 7, 2026
Contractor’s Son Arrested Over Alleged $46M Crypto Theft From US Marshals

Contractor’s Son Arrested Over Alleged $46M Crypto Theft From US Marshals

March 6, 2026
Solana Price Prediction: Western Union Just Chose Solana for Its New Stablecoin — Is SOL About to Explode?

Solana Price Prediction: Western Union Just Chose Solana for Its New Stablecoin — Is SOL About to Explode?

March 5, 2026
XRP Price Sets Stage for Comeback — Recovery Wave Incoming?

XRP Price Sets Stage for Comeback — Recovery Wave Incoming?

March 9, 2026
CryptoABC.net

This is an Australian online news/education portal that aims to provide the latest crypto news, real-time updates, education and reviews within Australia and around the world. Feel free to get in touch with us!

What's New Here!

Bonk Fun Website Hijacked: Live Exploit Is Draining User Funds

Bonk Fun Website Hijacked: Live Exploit Is Draining User Funds

March 12, 2026
Binance Launches Defamation Lawsuit Against Wall Street Journal Over Iran Sanctions Claims

Binance Launches Defamation Lawsuit Against Wall Street Journal Over Iran Sanctions Claims

March 12, 2026

Subscribe Now

  • Contact Us
  • Privacy Policy
  • Terms of Use
  • DMCA

© 2021 cryptoabc.net - All rights reserved!

No Result
View All Result
  • Live Crypto Prices
  • Crypto News
    • Worldwide
      • Bitcoin
      • Ethereum
      • Altcoin
      • Blockchain
      • Regulation
    • Australian Crypto News
  • Education
    • Cryptocurrency For Beginners
    • Where to Buy Cryptocurrency
    • Where to Store Cryptos
    • Cryptocurrency Tax in Australia 2021

© 2021 cryptoabc.net - All rights reserved!

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms below to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In
Please enter CoinGecko Free Api Key to get this plugin works.