/plushcap/analysis/cockroach-labs/the-architecture-of-a-distributed-sql-database-pt-1-converting-sql-to-a-kv-store

The Architecture of a Distributed SQL Database Pt 1: Converting SQL to a KV Store

What's this blog post about?

CockroachDB is a distributed SQL database designed with an architecture that converts SQL statements into key-value data. The bottom layer of this architecture is a distributed, replicated, transactional key-value store. This enables efficient distribution of data within the database and supports tables and indexes. The key-value store facilitates dynamic schema change and allows CockroachDB to retain the efficiency of a KV store while still speaking SQL. Under the hood, it stores tabular data in a monolithic sorted map of KV pairs, where every table has a primary key, there is one key/value pair per column, and keys and values are all strings. The architecture also supports efficient range scans and automated sharding through range splitting.

Company
Cockroach Labs

Date published
Oct. 14, 2020

Author(s)
Charlotte Dillon

Word count
1405

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.