Writing My Own Database From Scratch

First episode of the #mkown series. In this video I write my own SQL database from scratch without using any libraries or third party dependencies. Only the standard library provided by the chosen programming language is allowed (Rust in this case). The end result is a basic ACID compliant database that can process only one transaction at a time, something similar to the first versions of SQLite from the early 2000s, but with less features (and probably much worse performance). The goal of these videos is to provide a high level overview of how such complicated systems work internally, not explaining all the code in detail as that would require dozens of hours of content. 🌐 LINKS Project Repository: ✉️ CONTACT INFO Business Email: business@ Contact Email: sarosiantonio@ Twitter: Instagram: LinkedIn: 🎵 MUSIC 🕖 Time Lapses 🔉 Background 📖 CHAPTERS 00:00 What is Mkown? 00:37 What Do We Know About Databases? 02:18 Research Time Lapse 02:53 Initial Ideas 03:04 Naive Storage Format 05:31 Why Binary Trees Are Not Enough For Indexes 07:46 Why B-Trees Are Better Than Binary Trees 12:21 Software Architecture 13:17 Dev Time Lapse 14:13 Project Demo 18:23 Database Internals 19:24 File System Structure 20:31 Slotted Pages 23:45 Rows, Tables And Indexes 26:50 Overflow Pages 28:30 Sophisticated BTree Balancing Algorithm 29:53 Parsing and AST (Abstract Syntax Tree) 31:54 Query Planner 34:23 K-Way External Merge Sort 36:50 Cache Replacement Algorithm 38:19 Transactions: Commit & Rollback 39:27 Network Protocol 39:56 Final Thoughts 🏷️ HASHTAGS #programming #computerscience
Back to Top