Live data from Hacker News

Lobste.rs is now running on SQLite

lobste.rs

191–200 of 209 posts

Re: Lobste.rs is now running on SQLite

#191
post #8

Earlier quoted context omitted.

HN is increasingly bot central, I kind of assume 80% of the respondents are artificial. Lobsters still got a pulse, largely.

That's an unsubstantiated and false accusation wrt the 80%. If you believe it, why are you even here? Are you one of them?

Bad bot.

Re: Lobste.rs is now running on SQLite

#192
post #43

Earlier quoted context omitted.

SQLite definitely seems like a poor choice for dealing with many concurrent requests. Maybe it's improved since I last used it, but to my knowledge SQLite essentially forces all writes to be serialised, at risk of data corruption otherwise. There are tricks for improving the performance such as WALs, but that is merely a performance boost rather than genuine concurrency with things like row-level locks that you might…

Depends on the architecture.. They could have one SQLite instance per user and then have a single sweeper that goes through all last writes and then replicates it to the main instance - eventual consistency fanned out across files

So now you're introducing even more processes, even more latency and complexity, and for what benefit?

Eventual consistency on users would make it difficult to do things like "WHERE !user.is_banned" when getting the stories, so you need to keep your users database tightly synchronised. Sure, you could pro-actively delete or mark comments when deleting users, but now you're risking having the ban itself fail, and have also now added a much longer write operation, as you have to mark all those comments deleted. And long running writes is the one thing you desperately need to avoid in SQLite.

And why go to all that effort when you could avoid all that effort by running a database which allows concurrent writes on the machine local to the web application?

All the benefits of machine-local latency, and all the benefits of concurrent writers and transaction isolation.

Re: Lobste.rs is now running on SQLite

#193
post #126
post #10

Earlier quoted context omitted.

It's a wonderful place. It feels like HN, but with the Silicon Valley attitude dialed way way way down, and with a much narrower scope (politics, economics and entrepreneurship are all off-topic, for example).

Hi. Could you send me an invite? Email in my profile :)

Nevermind, I got it. Thank you.

Re: Lobste.rs is now running on SQLite

#194
post #21
post #9

No intention to antagonize but... why not postgre? Even my side projects run on postgresql with no overhead at all

It's also explained in the post shared: --- I've heard "why not PostgreSQL?" a few times this week. It was even our original plan in #539! Well, it was a pragmatic choice in two different ways: The person who volunteered to do the work used SQLite. I don't want to use solutions that are bigger and more complex than our likely needs. Postgresql is my default for projects, but it does have the added complexity of being…

The person who volunteered to do the work used SQLite.

That is a totally valid reason.

Though if you can run it from SQLite there is not much tuning on Postgres that would be needed. I would expect migration to Postgres from MariaDB would be easier.

Re: Lobste.rs is now running on SQLite

#196
post #123

Earlier quoted context omitted.

For a relatively low-traffic site like Lobster's, yeah I'm not surprised they don't need anything crazy. SQLite is really efficient and modern hardware is really fast.

I don't think SQLite is particularly optimized for modern hardware. It's just crazy efficient with a regression test suite many projects wish they could have.

Modern hardware mostly benefits from the optimizations made for older hardware too, so I'm not really sure what your point is.

Re: Lobste.rs is now running on SQLite

#197
post #37

Earlier quoted context omitted.

I dont remember why I was kind of barred from lobsters , but I applaud all this behavior you mentioned. In the end, that's how normal clickes of friends/interest groups form (or formed 30 years ago in real life.) If you got into my group of death metal people, and suddenly started talking about Oasis... we would invite you to get out haha. Same with patriots.win . They may be a group of right wing biggots, but hey, t…

[flagged]

Citation needed.

Re: Lobste.rs is now running on SQLite

#198
post #130

They use WAL in SQLite. If I continuously perform reads/writes so that they overlap with no gaps, I can make their VM go down because SQLite will not have time to initiate a checkpoint to trim the WAL file. SQLite waits for a time window without any active reads/writes before starting a WAL checkpoint. If there isn't one, the WAL will grow indefinitely, eating up all the disk space on the VM. It's in SQLite's documen…

You can force explicit CHECKPOINTs to combat that.

Re: Lobste.rs is now running on SQLite

#199
post #159

Moving from MariaDB to SQLite and not Postgres for a web application of this scale is insane. I wonder what went into the discussion behind this.

Have you ever contemplated the true performance of SQLite? Expensify reached 4M point database queries per second, and an artificial (more like parser-testing, not database-touching) 160M qps. If your backend is on a single machine of predictable performance, and you properly index your queries, and you don't require remote DB connections, you don't need anything else but SQLite for 95% of use cases.

https://use.expensify.com/blog/scaling-sqlite-to-4m-qps-on-a...

Re: Lobste.rs is now running on SQLite

#200
post #175

Earlier quoted context omitted.

- Its query planner is ancient and broken - it comes up with very bad plans. Every time we rely on it, we regret it eventually - you have to use locks to prevent mangled write transactions, instead of the db handling it. Jepsen report is scathing - its pretty hard to set it up in semi-sync replication mode, a.k.a. "only return from a transaction commit when the transaction is present on at least one other replica". O…

>I don't know why you would choose it Vitess. Also I often wonder if these system are on latest mySQL? I have read plenty of mySQL opinions that still based their experience during 5.x era.

Yep. In 2026 I’m still hearing that MySQL is terrible because of MyISAM
Post reply on HN