> ## Documentation Index
> Fetch the complete documentation index at: https://docs.theblockchainlibrary.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Database

> A database is a structured collection of data held in a computer, typically managed by a Database Management System (DBMS). Traditional databases are centralized, relying on a client-server architecture where a single administrator controls access, updates, and integrity. In cont

# Database

A database is a structured collection of data held in a computer, typically managed by a Database Management System (DBMS). Traditional databases are centralized, relying on a client-server architecture where a single administrator controls access, updates, and integrity. In contrast, blockchain-based databases represent a distributed ledger technology (DLT) where the state is replicated across multiple nodes. While traditional databases optimize for speed and CRUD operations, blockchain databases prioritize consensus, redundancy, and immutability over raw performance and data deletion.

## Definition

A database is a structured collection of data held in a computer, typically managed by a Database Management System (DBMS). Traditional databases are centralized, relying on a client-server architecture where a single administrator controls access, updates, and integrity. In contrast, blockchain-based databases represent a distributed ledger technology (DLT) where the state is replicated across multiple nodes. While traditional databases optimize for speed and CRUD operations, blockchain databases prioritize consensus, redundancy, and immutability over raw performance and data deletion.

## Simple explanation

Think of a traditional database as a single notebook kept by a librarian who decides who can see or change the records inside. A blockchain database, however, is like having thousands of copies of that notebook distributed to everyone in the world. When a change happens, everyone updates their copy at the same time, making it impossible to cheat or lose the information.

## Why it matters

This distinction matters because it shifts the trust model from human administrators to cryptographic protocols. It allows for permanent, tamper-evident record-keeping that is essential for trustless financial and supply chain applications.

## How it works

Traditional databases use SQL or NoSQL to organize data in rows, columns, or documents on centralized servers. Blockchain databases append data in chronologically ordered blocks, linked via cryptographic hashes to form a chain. Instead of centralized CRUD operations, data is verified via network consensus and written into the distributed ledger permanently.

## Real-world example

PostgreSQL is a standard centralized database, whereas the Ethereum ledger functions as a decentralized, global database for smart contract states.

## Advantages

* Data redundancy across nodes
* Tamper-evident historical records
* Trustless verification of state

## Limitations

* Slower read and write speeds
* High storage requirements
* Inability to delete data

## Common misconceptions

* People mistakenly think all blockchains are databases; a blockchain is a specific type of immutable, distributed database.
* Users often assume blockchain databases are always more efficient than traditional ones.

## Related knowledge

* [Centralization](https://docs.theblockchainlibrary.com/generated/v2/glossary/centralization) — term
* [Cloud Computing Is Only the Beginning](https://docs.theblockchainlibrary.com/generated/v2/topics/cloud-computing-is-only-the-beginning) — article
* [Cloud Computing Is Only the Beginning](https://docs.theblockchainlibrary.com/generated/v2/topics/cloud-computing-is-only-the-beginning) — related-article
* [Data Integrity](https://docs.theblockchainlibrary.com/generated/v2/glossary/data-integrity) — term
* [Distributed Ledger Technology](https://docs.theblockchainlibrary.com/generated/v2/glossary/distributed-ledger-technology) — term
* [Hash Function](https://docs.theblockchainlibrary.com/generated/v2/glossary/hash-function) — term
* [How Blockchain Is Revolutionizing Digital Identity Verification](https://docs.theblockchainlibrary.com/generated/v2/topics/how-blockchain-is-revolutionizing-digital-identity-verification) — article
* [How Blockchain Is Revolutionizing Digital Identity Verification](https://docs.theblockchainlibrary.com/generated/v2/topics/how-blockchain-is-revolutionizing-digital-identity-verification) — related-article
* [State](https://docs.theblockchainlibrary.com/generated/v2/glossary/state) — term
* [The Future of Token-Gated Communities](https://docs.theblockchainlibrary.com/generated/v2/topics/the-future-of-token-gated-communities) — article
* [The Future of Token-Gated Communities](https://docs.theblockchainlibrary.com/generated/v2/topics/the-future-of-token-gated-communities) — related-article
* [The Quiet Rebuild of the Internet](https://docs.theblockchainlibrary.com/generated/v2/topics/the-quiet-rebuild-of-the-internet) — article
* [The Quiet Rebuild of the Internet](https://docs.theblockchainlibrary.com/generated/v2/topics/the-quiet-rebuild-of-the-internet) — related-article
* [Why APIs Are the New Economy](https://docs.theblockchainlibrary.com/generated/v2/topics/why-apis-are-the-new-economy) — article
* [Why APIs Are the New Economy](https://docs.theblockchainlibrary.com/generated/v2/topics/why-apis-are-the-new-economy) — related-article

***

**Canonical knowledge ID:** `glossary:database`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.