Writing My Own Database From Scratch

Tony Saro
Tony Saro
144.7 هزار بار بازدید - 2 ماه پیش - First episode of the
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: https://github.com/antoniosarosi/mkdb

✉️ CONTACT INFO

Business Email: [email protected]
Contact Email: [email protected]
Twitter: Twitter: antoniosarosi
Instagram: Instagram: antoniosarosi
LinkedIn: LinkedIn: antoniosarosi

🎵 MUSIC

🕖 Time Lapses

SoundCloud: temporal-t-lpa-once-upon-a
Neovaii - The Maze

🔉 Background

SoundCloud: intro-falling-out
SoundCloud: silhouette
SoundCloud: cerulean-skyway
SoundCloud: lifted
Crossroad
[FREE] Chill Type Beat - "My Dying St...
Sine Ira
❰Chillstep❱ Sappheiros - Aurora

📖 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
2 ماه پیش در تاریخ 1403/02/20 منتشر شده است.
144,748 بـار بازدید شده
... بیشتر