Nice, Damus relay seems to perform very well after the switch. How hard was it to migrate everything?

Reply to this note

Please Login to reply.

Discussion

Not hard. Strfry provides some nice migration tooling actually. Coming from nostr-rs-relay I was able to run:

sqlite3 ./nostr.db '.mode json' '.once out.json' ' select content from event;'

cat out.json | jq --raw-output 'map(.content)| .[]' >> out.jsonl

cat out.jsonl | ./strfry import

It imported the ~700k in just a couple minutes. Worked great.

Wow, seems pretty easy