BaikalDB

active

by Baidu · since 2018 · also known as Baikal DB

Baidu's MySQL-compatible distributed HTAP database on RocksDB and Raft, with full-text and vector indexes.

relationalvectorsearch enginedatabase engineopen source (permissive)growing

Overview

BaikalDB is a distributed SQL database from Baidu, open-sourced in 2018, that speaks the MySQL protocol and dialect so applications can move from MySQL with few changes. It separates a stateless SQL layer from Raft-replicated storage regions on RocksDB, built with Baidu's brpc and braft libraries, and borrows design ideas from TiDB and Impala. Beyond OLTP it adds inverted full-text indexes, a columnar engine, MPP execution, querying of Parquet files and, in 2026 releases, vector indexes (IVF and PQ variants), cosine-similarity functions, array columns, column-level TTL and an optional storage-compute separated mode. It is actively developed (v5.0.0, June 2026), though most documentation and community discussion are in Chinese.

Strengths & trade-offs

Strengths

  • +MySQL protocol compatibility eases migration from sharded MySQL
  • +Raft-replicated regions give automatic sharding, failover and rebalancing
  • +Full-text inverted indexes and vector indexes in the same SQL engine
  • +Columnar engine and MPP execution for analytical queries alongside OLTP
  • +Permissive Apache 2.0 license with frequent 2026 releases

Trade-offs

  • −Documentation, release notes and community are mostly in Chinese
  • −Small ecosystem outside Baidu compared with TiDB or CockroachDB
  • −Some features (e.g. storage-compute separation) only target Baidu's internal file system
  • −No vendor-managed cloud service

Great for

  • +Scaling out MySQL-style OLTP workloads
  • +HTAP reporting on live transactional data
  • +Combining SQL filters with full-text or vector similarity search

Think twice for

  • −Teams needing English-language commercial support
  • −Small single-node deployments where MySQL or PostgreSQL suffice

Capabilities

Native or official first-party support · 11 of 25 tracked

✓Transactions
✓Joins
✓Secondary indexes
✓Full-text search
✓Vector search
✓JSON
✓TTL / expiry
✓Columnar storage
✓Durable persistence
✓Compression
✓Online schema changes
–Geospatial
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–Pub/Sub
–In-memory
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Large · ≤ 1 PB
Horizontal scaling
Native
Multi-region
No
Transactions
Full ACID
Consistency
Strong
Schema
Strict
Architecture
Distributed
Query languages
SQL (MySQL dialect)

Data is split into Raft-replicated regions that split and move automatically; positioned for petabyte-scale structured data.

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

compatible withMySQL
apis & protocolsMySQL wire protocol
client languagesAny MySQL driver

Alternatives to BaikalDB

Compare all→
TiDBRelational35.9

MySQL-compatible distributed SQL with a row store for OLTP and a columnar replica for real-time analytics.

baikaldb vs tidb →
OceanBaseRelational19.4

Alipay-proven distributed SQL with MySQL (and Oracle, in Enterprise) compatibility, HTAP and vector search.

baikaldb vs oceanbase →
CockroachDBRelational47.1

Postgres-wire distributed SQL built to survive node, zone and region failures with serializable transactions.

baikaldb vs cockroachdb →
VitessRelational21.2

CNCF-graduated sharding and clustering layer that makes a fleet of MySQL servers look like one database.

baikaldb vs vitess →
SingleStoreRelational29.0

Distributed SQL running transactions, analytics, vector and full-text search in one engine on live data.

baikaldb vs singlestore →
MatrixOneRelational6.1

MySQL-compatible cloud-native HTAP database on object storage, with vector search and snapshots.

baikaldb vs matrixone →

BaikalDB FAQ

What is BaikalDB?

BaikalDB is a relational database by Baidu, first released in 2018. BaikalDB is a distributed SQL database from Baidu, open-sourced in 2018, that speaks the MySQL protocol and dialect so applications can move from MySQL with few changes. It separates a stateless SQL layer from Raft-replicated storage regions on RocksDB, built with Baidu's brpc and braft libraries, and borrows design ideas from TiDB and Impala. Beyond OLTP it adds inverted full-text indexes, a columnar engine, MPP execution, querying of Parquet files and, in 2026 releases, vector indexes (IVF and PQ variants), cosine-similarity functions, array columns, column-level TTL and an optional storage-compute separated mode. It is actively developed (v5.0.0, June 2026), though most documentation and community discussion are in Chinese.

Is BaikalDB open source?

Yes. BaikalDB is open source. License: Apache License 2.0.

Does BaikalDB support ACID transactions?

Yes. BaikalDB supports full ACID transactions, with strong consistency.

Does BaikalDB scale horizontally?

BaikalDB scales horizontally out of the box, with built-in sharding or partitioning. It is comfortable at large scale (≤ 1 PB).

How can I run BaikalDB?

You can self-host it.

What is BaikalDB best for?

BaikalDB is a strong fit for scaling out MySQL-style OLTP workloads, HTAP reporting on live transactional data and combining SQL filters with full-text or vector similarity search. Think twice for teams needing English-language commercial support.

What are the best alternatives to BaikalDB?

Common alternatives to BaikalDB include TiDB, OceanBase, CockroachDB, Vitess and SingleStore. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

How popular is BaikalDB?

BaikalDB ranks #478 of 844 databases on the WhichDB Score (2.3/100), and #150 among relational databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.