News for hackers. Stuff that matters.

Ask HN: Books about database implementation (relational algebra, etc.)?

I'm looking for a book on the computer science involved in implementing a database:

* Relational algebra

* Logical vs. physical planning stages

* Optimization (cost-based, etc.)

* Indexing algorithms

* Physical layouts

* Concurrency control

* Parsing

* Distribution

* OLTP vs. OLAP

* etc.

I'm not looking for books about how to write database apps or to manage them, nor books about modeling data or explaining SQL.

Thanks!

( 10 comments | 57 points | on HN )
Re:Ask HN: Books about database implementation (relational a... by manigandham on Thursday November 08, 2018 @06:47PM (#18411110)
The Carnegie Mellon University (CMU) Database Group with Andy Pavlo [1] puts out a ton of content, including lectures on architecture, and interviews and presentations with various database companies. Check out the seminar playlists for video series and notes. [2] They also have research projects like Peloton. [3]

[1] https://db.cs.cmu.edu/

[2] https://www.youtube.com/channel/UCHnBsf2rH-K7pn09rb3qvkA/fea...

[3] https://github.com/cmu-db

Re:Ask HN: Books about database implementation (relational a... by bradstewart on Thursday November 08, 2018 @05:38PM (#18410708)
Re:Ask HN: Books about database implementation (relational a... by atombender on Thursday November 08, 2018 @05:50PM (#18410794)
That looks great, though it seems to be focused on the transaction processing part, and misses the big chunk that concerns querying (e.g. planning).
Re:Ask HN: Books about database implementation (relational a... by bradstewart on Thursday November 08, 2018 @06:02PM (#18410858)
Very true. It touches a bit on the retrieval side with some discussion of keys, hashing, B-trees, etc in the "Access Paths" chapter, but primarily from the perspective of making the system robust and consistent. Definitely does not cover the full space of database design (no mention of query planning at all).
Re:Ask HN: Books about database implementation (relational a... by ryanworl on Thursday November 08, 2018 @05:52PM (#18410805)
Re:Ask HN: Books about database implementation (relational a... by harlanji on Friday November 09, 2018 @10:55AM (#18415317)
I used this in a grad class. It was a progression from intuition to theory to implementation. I already had DB exp, and it aligned with the operators and index types that we found in PG 9 for the class project including batch and streaming implementations as discussed. No point of comparison to other works.
Re:Ask HN: Books about database implementation (relational a... by saketuec on Thursday November 08, 2018 @07:55PM (#18411530)
Re:Ask HN: Books about database implementation (relational a... by johnsonjo on Friday November 09, 2018 @12:58AM (#18412609)
Fundamentals of Database Systems by Ramez Elmasri and Shamkant B. Navathe [1] is what I used in my undergraduate course in computer science. I would take a look at the table of contents to see if it has most of what you want. I know it at least has relational algebra and indexing data structures and algorithms.

[1]: Fundamentals of Database Systems (7th Edition) https://www.amazon.com/dp/0133970779/ref=cm_sw_r_cp_api_i1r5...

Re:Ask HN: Books about database implementation (relational a... by millrawr on Thursday November 15, 2018 @08:32PM (#18465429)
Building Query Compilers: http://pi3.informatik.uni-mannheim.de/~moer/querycompiler.pd...

Is the closest to what you actually want that I've ever been able to find, but it is unfinished.

Re:Ask HN: Books about database implementation (relational a... by tjr on Thursday November 08, 2018 @06:04PM (#18410873)
Some helpful information here, I would think: http://www.redbook.io/