fiatjaf on Nostr: , for example, uses a Postgres database and that's so awful because it's meant to be ...
https://noflux.nostr.technology/, for example, uses a Postgres database and that's so awful because it's meant to be used by a single person in a desktop home machine. I even tried to switch it to SQLite because it would be a strict improvement (
https://github.com/fiatjaf/narr uses it luckily) but couldn't (yet) because SQL is so bad it's not even standard among all databases (and everybody knows that, but it's impossible to do anything about it).
I also tried to use
https://pglite.dev/, but it didn't have easy to use Go bindings apparently.
Or is it because SQL is associated with servers running externally to the programs that use the data and as such they constitute a weird unnecessary slow abstraction that isn't needed for 99% of the programs we write today that could pretty much use an embedded simpler database or sometimes just some files?
Published at
2025-04-30 10:48:40Event JSON
{
"id": "816a4ac3d24eb49e8c73235da7b05331a7797c3c51228174cc4a3aa41bdef4d8",
"pubkey": "3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"created_at": 1746010120,
"kind": 1,
"tags": [
[
"q",
"013d79b2765c8da3151ffc4ff8fe6ad3b39a1bb0710fa81b290b0f46700c5984",
"wss://lockbox.fiatjaf.com/",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d"
],
[
"p",
"3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d",
"wss://relay.westernbtc.com/",
"fiatjaf"
]
],
"content": "https://noflux.nostr.technology/, for example, uses a Postgres database and that's so awful because it's meant to be used by a single person in a desktop home machine. I even tried to switch it to SQLite because it would be a strict improvement (https://github.com/fiatjaf/narr uses it luckily) but couldn't (yet) because SQL is so bad it's not even standard among all databases (and everybody knows that, but it's impossible to do anything about it).\n\nI also tried to use https://pglite.dev/, but it didn't have easy to use Go bindings apparently.\n \nnostr:nevent1qvzqqqqqqypzqwlsccluhy6xxsr6l9a9uhhxf75g85g8a709tprjcn4e42h053vaqyd8wumn8ghj7mr0vd4kymmc9enxjct5dfskvtnrdakj7qg6waehxw309ac8junpd45kgtnxd9shg6npvchxxmmd9uq3kamnwvaz7tmjv4kxz7fwwajhxar9wfhxyarr9e3k7mf0qqsqz0tekfm9erdrz50lcnlcle4d8vu6rwc8zragrv5skr6xwqx9npqnwt5re",
"sig": "678de7bf4b1a90daa4b6ae3b1e64e2e3543b57c7e7b46db6d9e220d448245d25973da958498673a92bf655f4095936daf876051114ef0a55958e2087373e30fc"
}