22 ms·
I did this alone. The database itself was only about 200 lines of code but took about three weeks of effort which included writing the initial implementation, r
by lmilcin 8y ago
I did this alone. The database itself was only about 200 lines of code but took about three weeks of effort which included writing the initial implementation, refactoring it, writing performance test, optimizing the implementation for the intended load and integrating in the application.
The application was much larger, about 40k LOC and took about two and a half years to complete, certify and deploy to production.
- Doubl 8y agoA database in 200 lines of code is incredible. I'd love to see that, even better if it was annotated.
- lmilcin 8y agoAs I said, there is nothing spectacular about this. This notion that a database must be a difficult and complex thing and best left for experts is just turning people off from exploring and learning. When it doesn't need to be general purpose, has only one thread accessing it, stores at most 1MB of data, has only KV access (so basically persistent hashmap) and doesn't have to be blazing fast, the resulting code may be very simple.