Design and Implementation of Enabling SQL–Query Processing for Ethereum-Based Blockchain Systems

Jongbeen Han, Yunhyeong Seo, Sangjin Lee, Sunggon Kim, Yongseok Son

Research output: Contribution to journalArticlepeer-review

4 Scopus citations

Abstract

A blockchain is designed to establish consistent and reliable agreements in an untrusted and decentralized environment. In addition, the blockchain enables transaction processing and the creation of smart contracts. It empowers end users to execute contracts without any intermediate entities. However, there are some issues when it comes to retrieving information, such as the state and history of smart contracts and regular transactions in the blockchain. For example, in a smart contract, user-defined data structures can be used to recall the state of the smart contract for a range query, which can decrease the general performance. In addition, an external database can be required to retrieve regular transactions for range queries, which increases management costs. To achieve this, we propose a new scheme that enables SQL query operations to retrieve a smart contract and regular transaction information within the blockchain system. To achieve this, we combine an embedded relational database with an Ethereum-based blockchain system to provide the SQL query. It enables range queries on smart contracts without requiring user-defined data structures and decreases management costs for regular transactions without any external database. We implement the proposed blockchain system on quorum, which is an Ethereum-based blockchain system. Also, we evaluate the proposed system using a synthetic benchmark. The performance of retrieving smart contract data is improved by up to approximately 22×, with low memory usage compared with the existing system. Moreover, the proposed system demonstrates a similar search performance to the existing system, even when considering external databases in regular transactions.

Original languageEnglish
Article number4317
JournalElectronics (Switzerland)
Volume12
Issue number20
DOIs
StatePublished - Oct 2023

Keywords

  • Ethereum
  • SQL query
  • SQLite
  • blockchain

Fingerprint

Dive into the research topics of 'Design and Implementation of Enabling SQL–Query Processing for Ethereum-Based Blockchain Systems'. Together they form a unique fingerprint.

Cite this