The strfry database seems super complex. Why just not go with a āconventionalā DB, like SQLite, or SQL server (with ODBC connection)? Me, I use a JSON array of Nostr events as ādatabaseā, with linear search :-) . This is a database with one record. Simple (also happens to be my first ever Nostr post) https://github.com/pedro-vicente/nostr_client_relay/blob/main/database/database.json
Discussion
Damus used to run on sqlite but it couldnāt handle the load, even with optimized queries. lmdb is the only thing that doesnāt fall over atm.
Got it. I just created a fork of your new database and will try to do that CMake build and Windows port soon. Curious about the performance, and it seems so simple (I like simple things). Cheers. https://github.com/pedro-vicente/nostrdb
windows patches are welcome. Right now i just have the data structure that Iāve already mapped to data types within Swift/damus. The lmdb bit is coming soon.
Here you go. Started with just a CMake script that defines a library used by ātestā and ābenchā. Tested in Linux and made a pull request. The ātestā program fails with an assertion by the way. CMake is just a must have build tool for cross compiling https://github.com/damus-io/nostrdb/pull/1
Hey, I made a new pull request that has more CMake support for the secp256k1 lib, do you have time to merge it? Thanks (Sent from Nostur for Mac, neat desktop client) . https://github.com/damus-io/nostrdb/pull/2