Small database system for beginners to study SQL engines, storage, and core database modules through hands-on exercises.
Overview
MiniOB is a database learning project aimed at students, practitioners, and enthusiasts who want to study how a database works inside. It was developed from a university course prototype with simplified modules so learners can focus on implementation ideas rather than full production features such as heavy concurrency, security hardening, or complex transaction models.
The architecture includes network service for client requests, SQL parsing and semantic resolution, partial query optimization, execution, a storage engine, MVCC-style transaction handling, redo logging, record management, B+ tree indexes, session handling, metadata management, and a test client. Documentation and guided exercises walk newcomers from compilation and running the server through deeper kernel topics.
It is used as a training platform for database competitions and coursework, with online coding environments and tutorials referenced for practice. It is for learning only and is not intended for production deployment.
Key features
- SQL parse and execute pipeline
- Storage engine and B+ tree indexes
- MVCC-oriented transaction support
- Redo log and record management
- Network client-server protocol
- Metadata and session management
- Progressive hands-on lab problems
- Published design documentation
Use cases
- Learn database kernel module interactions
- Practice competition-style DB assignments
- Teach database implementation in classrooms
- Prototype SQL engine coursework locally