Can Blockchain Be Queried as a Database?

  • Thread starter Thread starter WWGD
  • Start date Start date
  • Tags Tags
    Database
Click For Summary

Discussion Overview

The discussion revolves around whether blockchain can be considered a database and how it can be queried. Participants explore the nature of blockchain technology, its differences from traditional databases, and the implications of its decentralized structure. The conversation touches on querying mechanisms and the characteristics of blockchain as a data storage solution.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • Some participants question whether blockchain can be queried like a traditional database, expressing uncertainty about key-value systems and how blocks are added.
  • One participant describes blockchain as a distributed database that differs from traditional databases due to its decentralized nature and reliance on a consensus mechanism among participants.
  • Another participant notes that while blockchain can record transactions, blocks cannot be modified once added, except for the current block.
  • There is mention of the computational burden associated with cryptography in blockchain technology, which affects its speed compared to centralized databases.
  • Participants discuss the concept of key-value pairs and associative arrays, although the relevance to blockchain querying remains unclear.

Areas of Agreement / Disagreement

Participants express varying levels of understanding about blockchain and its querying capabilities. There is no consensus on the specifics of how blockchain functions as a database or the implications of its decentralized nature.

Contextual Notes

Limitations include a lack of detailed understanding of blockchain querying mechanisms and the implications of its decentralized architecture. Some participants are not familiar with blockchain technology, which may affect the depth of the discussion.

Who May Find This Useful

This discussion may be useful for individuals interested in blockchain technology, database systems, and the differences between centralized and decentralized data storage solutions.

WWGD
Science Advisor
Homework Helper
Messages
7,785
Reaction score
13,076
Hi All,
Just curious: If blockchain is a database.
Can it be queried? I don't know how key-value systems are queried.
How are blocks added?
I guess if it is a DB, it is not modifiable
 
Technology news on Phys.org
Caveat: I don't know anything about blockchains, Bitcoin, or other crypto-currencies. I'll respond to the question you asked, which might not be what you're really asking.
WWGD said:
I don't know how key-value systems are queried.
A dictionary (in Python parlance) or map (in C++ parlance) is a data structure consisting of key-value pairs. You can access (for read or write) a value by using its key, similar to the way you access an element of an array by using its index in the array. One difference is that for an array, the indexes have to be integral values; for a dictionary/map, the keys can be strings or numbers, or other types.
 
  • Like
Likes   Reactions: WWGD
Another term is associative array.
 
WWGD said:
Hi All,
Just curious: If blockchain is a database.

I am not a blockchain user but I know some things about it.
Blockchain technology creates a distributed database and the difference between it and a traditional database is that it is not centralized as the latter i.e. it is not based on the classical client - server model, where the client can among other things - where "things" means the CRUD operations, change entries that are stored in some server on the net i.e on some centralized resource. In blockchain technology each participant maintains, calculates and updates new entries into the database in the form of records. Blockchain is a combination and orchestration of three technologies: Internet (specifically P2P network form), cryptography (private key) and a protocol.
As it is decentralized it is appropriate for some specific functions but not for all. Centralized databases are appropriate for other.

One notable thing about blockchains is that they can provide real time information but they can also hold their own history and expand. They are not as fast as a centralized traditional database and this is mostly due to the fact that are based on distributed networks that do not share processing power so each one must process and then compare to the rest of the whole network in order some "consensus" of what has happened to be reached. Also, hiding information using some form of cryptography poses a serious computational burden for the machines on the network.
 
  • Like
Likes   Reactions: FactChecker and WWGD
WWGD said:
Hi All,
Just curious: If blockchain is a database.
Can it be queried? I don't know how key-value systems are queried.
How are blocks added?
I guess if it is a DB, it is not modifiable

There are a variety of blockchain technologies out there. Very generally:

A blockchain is a database that records transactions. You can query a blockchain but you cannot modify blocks other than the current block. Validated transactions are written to the current block and when the current block reaches a set size, a new block becomes the current block.
 
  • Like
Likes   Reactions: WWGD

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 7 ·
Replies
7
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 51 ·
2
Replies
51
Views
6K
  • · Replies 9 ·
Replies
9
Views
2K
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
8
Views
1K
  • · Replies 50 ·
2
Replies
50
Views
8K
Replies
65
Views
5K