# baidu/BaikalDB

BaikalDB, A Distributed HTAP Database.

Repository: https://github.com/baidu/BaikalDB
Canonical: https://ross.abutalabs.com/products/baikaldb
Language: C++
License: Apache-2.0
License Family: permissive
Topics: baikaldb, database, mysql, sql, htap, raft
Last push: 2026-06-15T08:23:16+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 87, release rhythm 65, longevity 100
- inputs: {"age_days": 2952, "days_push": 79, "days_rel": 79, "gap_med": 109, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1238, forks 174 (observed 2026-08-28T04:04:05.509010+00:00)

## What it is
BaikalDB is a distributed HTAP (hybrid transactional/analytical processing) database developed by Baidu, written in C++ and using Raft for consensus. It is MySQL protocol compatible, supports petabyte-scale structured data, and offers full-text search via inverted indices.

## Use cases
- migrate a MySQL workload to a horizontally scalable distributed database
- run transactional and analytical queries on the same petabyte-scale dataset
- add full-text fuzzy search to tables with FULLTEXT KEY indexes
- store and query hundreds of millions of rows with second-level aggregations
- self-host a distributed SQL database with strong consistency via Raft

## When to choose
- you need MySQL compatibility but outgrow a single MySQL instance
- you want mixed OLTP and OLAP workloads in one system
- you need built-in full-text search alongside SQL
- you require petabyte-scale structured data storage with real-time reads and writes

## When to avoid
- you need a fully managed cloud database
- your data fits comfortably in a single MySQL or PostgreSQL instance
- you depend on advanced MySQL features or ecosystem tooling not supported by BaikalDB's dialect
- you need non-Linux production deployments or broad community support

## Facets
- artifact type: service
- maturity: active
- function: database, search-engine
- domain: databases, big-data, backend
- platform: cpp, self-hosted
- tags: htap, distributed-database, mysql-protocol, raft, full-text-search, petabyte-scale, sql, search, linux

## Member repositories
- baidu/BaikalDB (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:05.509010+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:10:02.866612+00:00, confidence not recorded.
  - readme: https://github.com/baidu/BaikalDB (fetched 2026-08-28T04:04:05.509010+00:00, sha f23411a6413d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
