Getting Started – NCOG Earth Chain Decentralized Database (DDB) – Dual-Consensus Architecture Estimated reading: 2 minutes 739 views One of the most distinctive features of NCOG Earth Chain is its built-in Decentralized Database (DDB), which effectively merges a traditional database into the blockchain. The DDB is realized via a distributed PostgreSQL instance run by the network, allowing complex data queries and large-scale data storage on-chain. To maintain consistency and security, NCOG employs a dual-consensus mechanism for database operations, inspired by two-phase commit protocols and Hyperledger Fabric’s endorse-and-commit model. This mechanism ensures that all database transactions are agreed upon by a subset of validators first, then confirmed by the whole network, so the database state remains in sync with the blockchain state at all times. Why an Integrated Database? Traditional blockchains are not efficient for data-heavy applications – storing or querying large datasets (like social media content, IoT data, or enterprise records) on-chain is impractical on most platforms due to cost and performance. NCOG Earth Chain’s solution is to integrate a full SQL database within the blockchain consensus, so that dApps can perform high-volume CRUD operations (Create, Read, Update, Delete) on structured data without off-chain databases or centralized servers. This opens up use cases like decentralized social networks, supply chain databases, IoT data marketplaces, etc., with the trust guarantees of a blockchain (every modification is consensus-approved and audit-trail logged). ArticlesTwo-Phase Transaction Flow Ensuring Performance and Scalability Developer Use of the DDB