Hacker News new | past | comments | ask | show | jobs | submit login

I realized how little i knew about how databases work until I watched this lecture series. https://www.youtube.com/channel/UCHnBsf2rH-K7pn09rb3qvkA

Does anyone have DB internal book recommendation that inst' boring as hell.

You might try this collection of papers about DB technology.


Fair warning: this is not for beginners. If you find the going too hard, start with a DB textbook.

Also, that site doesn't seem to include the papers themselves. But most of those papers are very famous, so if you search for the titles, you should find copies. Worst case, you might need to visit a university library.

> Fair warning: this is not for beginners. If you find the going too hard, start with a DB textbook.

which one can teach how to build a DB system from scratch? I'm not talking about SQL theory or implementing a SQL parser but the actual persistence, indexing part.

Both of them, really. There's a lot to know if you want to build a modern database system. But no work I am aware of addresses the specific question of how to build a database system from scratch.

A reasonable approach might be to start with this high-level paper, and follow papers they reference until they get specific enough to address your specific questions:

    Joseph M. Hellerstein, Michael Stonebraker, James Hamilton. 
    Architecture of a Database System. Foundations and Trends in Databases, 1, 2 (2007).
For the sort of low-level issues that you are interested in, it might be useful to study a well-regarded persistence package, such as Berkeley DB.


Another system that might be worth studying is SQLite.


If the Hellerstein/Stonebraker/Hamilton paper is the kind of overview you are looking for, then a better link for the SQLite equivalent is


After hearing DDIA (https://dataintensive.net) recommended a few times, I picked it up and have been working through it recently. The book includes an incredible amount of references that provide further reading on individual areas.

I confirm DDIA is awesome book, I would recommend to anyone working with database and distributed systems.

Transactional Information Systems: Theory, Algorithms, and the Practice of Concurrency Control and Recovery (The Morgan Kaufmann Series in Data Management Systems) ISBN-13: 978-1558605084



Transaction Processing: Concepts and Techniques (The Morgan Kaufmann Series in Data Management Systems) ISBN-13: 978-1558601901


Pro SQL Server Internals by Dmitri Korotkevitch


It's specific to MS SQL Server but I found the chapters on log file management, indexes & isolation levels to be accessible and enjoyable.

I found this one very good and easy to read:


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact