Hacker News new | ask | show | jobs
by brokegrammer 570 days ago
This is amazing! I self host Plausible but don't like depending on Clickhouse and Postgres because they're annoying to upgrade.

What kind of database is this using though? I don't know enough Go to figure it out from the source.

2 comments

I checked the go.mod and it seems to be importing a module named pebble by cockroachdb i assume that's where everything is stored

https://github.com/cockroachdb/pebble

It uses Pebble, the key-value store that backs CockroachDB.
Just saw this notice:

> WARNING: Pebble may silently corrupt data or behave incorrectly if used with a RocksDB database that uses a feature Pebble doesn't support. Caveat emptor!

Slightly worrying for now running this in prod if there is a risk for silent data corruption, but hopefully in a few years Vince would have drivers for Postgres / Clickhouse.

This just warns about using Pebble with an existing RocksDB which isn't the case here. Pebble powers CockroachDB which is a Serious Database.
And Ethereum's state store. Which is an even more serious "database".
Reread the sentence, it says if you mix it with RocksDB (another database that has compatible file formats)