# cmu-db/bustub

The BusTub Relational Database Management System (Educational)

Repository: https://github.com/cmu-db/bustub
Canonical: https://ross.abutalabs.com/products/bustub
Homepage: https://15445.courses.cs.cmu.edu
Language: C++
License: MIT
License Family: permissive
Topics: database, dbms
Last push: 2026-08-24T19:12:43+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 51, longevity 100
- inputs: {"age_days": 2549, "days_push": 9, "days_rel": 171, "gap_med": 168.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5066, forks 2047 (observed 2026-08-28T04:09:09.251831+00:00)

## What it is
BusTub is an educational relational database management system written in C++ and built at Carnegie Mellon University for the 15-445/645 Introduction to Database Systems course. Students implement its core components (storage, indexes, query execution, concurrency control) through course projects, and it supports basic SQL with an interactive shell.

## Use cases
- learn how a relational database management system works internally
- implement a buffer pool manager and disk storage for a DBMS
- build B+ tree and hash table indexes from scratch
- implement query execution operators like joins, sorting, and aggregation
- study concurrency control and transaction processing in a real codebase
- practice systems programming in C++ on a database codebase

## When to choose
- you are taking or self-studying CMU 15-445/645 and want to complete its projects
- you want a guided, hands-on way to learn DBMS internals
- you want a small, readable C++ codebase to explore database architecture

## When to avoid
- you need a production-ready database for real workloads
- you need full SQL compliance, high performance, or durability guarantees
- you want to deploy a database server in an application

## Facets
- artifact type: learning-resource
- maturity: active
- function: database, interpreter, cli
- domain: databases, education, developer-tools
- platform: windows, cpp, cli
- tags: dbms, educational, course-project, sql, cmu-15-445, relational-database, linux, macos

## Member repositories
- cmu-db/bustub (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:09.251831+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:02:50.082662+00:00, confidence not recorded.
  - readme: https://github.com/cmu-db/bustub (fetched 2026-08-28T04:09:09.251831+00:00, sha 9c660c1d0e05)
  - homepage: https://15445.courses.cs.cmu.edu (fetched 2026-08-29T08:57:42.755562+00:00, sha f5f08a742b3e)
  - site_page: https://15445.courses.cs.cmu.edu/fall2026/faq.html (fetched 2026-08-29T08:57:42.764495+00:00, sha d3b0800f0a64)
- Data as of 2026-08-30T08:39:29.467469+00:00.
