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.

nostr:nevent1qvzqqqqqqypzqwlsccluhy6xxsr6l9a9uhhxf75g85g8a709tprjcn4e42h053vaqyd8wumn8ghj7mr0vd4kymmc9enxjct5dfskvtnrdakj7qg6waehxw309ac8junpd45kgtnxd9shg6npvchxxmmd9uq3kamnwvaz7tmjv4kxz7fwwajhxar9wfhxyarr9e3k7mf0qqsqz0tekfm9erdrz50lcnlcle4d8vu6rwc8zragrv5skr6xwqx9npqnwt5re

Reply to this note

Please Login to reply.

Discussion

What about object databases/stores?

No-sql databases?

Neo4j has go bindings and doesn't use SQL, thank God.

I've used that

it uses a language like SQL but different, which is even worse

That's because it's data model is different. Cypher queries are built for working with nodes/edges. It's all I use.

I’ve made my own server using redis. For me it was better because I can pre-index the database and lightly fetch it when needed. Pre-index work so well bc nostr already give the indexes by tags, Id and pubkey so it’s basically only store and fetch.