# oceanbase/miniob

MiniOB is a compact database that assists developers in understanding the fundamental workings of a database.

Repository: https://github.com/oceanbase/miniob
Canonical: https://ross.abutalabs.com/products/miniob
Homepage: https://oceanbase.github.io/miniob/
Language: C++
License: MulanPSL-2.0
License Family: other
Topics: database, learn-to-database, mini-database, classroom, education, training, cplusplus, hackertoberfest
Last push: 2026-06-25T09:27:31+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 8, longevity 100
- inputs: {"age_days": 1787, "days_push": 69, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4405, forks 1619 (observed 2026-08-28T04:08:48.384751+00:00)

## What it is
MiniOB is a compact, educational relational database developed by the OceanBase team for learning database internals from scratch. It includes simplified implementations of SQL parsing, query optimization, execution, storage engine, B+ tree indexes, MVCC transactions, and redo logging, paired with progressive exercises and tutorials.

## Use cases
- learn how a database kernel works
- practice implementing database internals step by step
- prepare for the OceanBase database competition
- study SQL parsing and query execution
- understand B+ tree indexing and MVCC transactions
- build engineering skills in memory management, networking, and disk I/O

## When to choose
- you want a beginner-friendly codebase to learn database internals
- you are a student training for database competitions or interviews
- you want guided exercises with tutorials and documentation

## When to avoid
- you need a production database with security, concurrency, and full transaction guarantees
- you need a fully-featured SQL engine for real workloads

## Facets
- artifact type: learning-resource
- maturity: active
- function: database, parser
- domain: databases, education, developer-tools
- platform: cpp, cli
- tags: database-internals, sql-engine, b-tree, mvcc, storage-engine, database-competition, oceanbase, education, linux, macos

## Member repositories
- oceanbase/miniob (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:48.384751+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-29T18:21:06.042896+00:00, confidence not recorded.
  - readme: https://github.com/oceanbase/miniob (fetched 2026-08-28T04:08:48.384751+00:00, sha c3ba27381c10)
  - homepage: https://oceanbase.github.io/miniob/ (fetched 2026-08-29T09:08:54.181491+00:00, sha bbf43a05420f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
