|
|
| | Ask YC: How to write a database | | 2 points by tumba on Oct 26, 2010 | hide | past | favorite | 7 comments | | Most algorithm and data structure texts deal with in-memory algorithms and I'm having difficulty making the leap to secondary-storage equivalents. I know that one should think twice before writing one's own database, but I want to learn how they work. What books and/or source code would you recommend I read? |
|

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
|
Nope, they deal with Algorithms in general without regard to storage. Usually when an algorithm has been developed with some sort of memory in mind it is titled as such. As an example cache oblivious algorithms are algorithms which are cache aware but oblivious to cache size (aka supposed to be good no matter the cache size).
Sqlite is the only database I can think of that is small enough to be read. If all you are interested in is algorithms applied to disk storage I don't think I would recommend writing your own database since that is going to involve writing a large chunk of code for SQL parsing, query planing, etc. Why not just write some data processing tools for data mining.