简体   繁体   中英

How fast is querying on an Ethereum based Blockchain database?

If I had to query my blockchain database built on the Ethereum network, how long would it between the request and response? Let's assume that the type of information is not media and only normal data. Would it be as fast as a conventional centralized database?

Reading data that has already been written and confirmed is fast. If you are running a full node you have access to all the blockchain data. How fast you can read it depends on your machine and where the data is stored (SSD, etc.). The data is stored in a leveDB database. "LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values." https://github.com/google/leveldb

Writing data is very slow, so if you are expecting to create a transaction and then have other clients read it immediately thereafter you will be disappointed. The answer in this case is 'it depends' and can range from seconds on a local testnet to minutes or hours depending on a number of factors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM