Any good learning resources for implementing your own DBMS, and DB internals? (not DB theory, not SQL, not intro).
Database of Databases
51–60 of 65 posts
Re: Database of Databases
#52Re: Database of Databases
#53They're using SQLite which is single threaded and single user by design. So this website will not be able to service that much traffic.
Re: Database of Databases
#54Any good learning resources for implementing your own DBMS, and DB internals? (not DB theory, not SQL, not intro).
Re: Database of Databases
#55Re: Database of Databases
#56Reminds me of my favorite Wikipedia article: https://en.wikipedia.org/wiki/List_of_lists_of_lists
My god that is a rabbit hole. Thanks for this! (But there goes my evening..)
Re: Database of Databases
#57They're using SQLite which is single threaded and single user by design. So this website will not be able to service that much traffic.
SQLite isn't single threaded - and it can support multiple readers very well. The limitation with SQLite is that it doesn't support concurrent writes well - it needs to take a lock on the entire database to perform a write. Writes are crazy fast (a few ms) so this often isn't a problem - but it does mean you wouldn't want to use it to build a site that has many people writing at once, like Hacker News for example. Fo…
> PRAGMA journal_mode=WAL;
Re: Database of Databases
#58Re: Database of Databases
#59Earlier quoted context omitted.
Should be fine for reads. Sqlite.org is dynamic, pulling from sqlite data for ~20% of the pages, and it does fine with HN piling on. The single threaded would be an issue for writes, but I don't see why they would be doing writes for a page view. See https://www.sqlite.org/whentouse.html
Also, caching layers. Presumably a service uses SQLite to simplify their ops. So long as the caching layer is equally simple to maintain, then SQLite continues to make sense to me
I suppose there would be a bunch of rewriting to do searching (lunr.js maybe) and filtering client side.
Buuuuuut, at this point, just turning on caching would be easier.
Re: Database of Databases
#60They're using SQLite which is single threaded and single user by design. So this website will not be able to service that much traffic.
I've survived a few HN front pages on SQlite + $5 DO droplet. Don't disparage my primary tech stack like this ^_^ The traffic from a HN frontpage is relatively low per second tbh.