What is Nostr?
Yuki Kishimoto
npub1drv…seet
2025-03-30 08:29:36
in reply to nevent1q…njde

Yuki Kishimoto on Nostr: Because I was using SQLite only for persistence. When it was opened, all the data was ...

Because I was using SQLite only for persistence. When it was opened, all the data was loaded into RAM, in the DatabaseHelper. It was basically an in-memory database with SQLite as persistence.

Using the NostrDatabase traits, you can implement your own database, and use it in rust-nostr. But if anyone is interested to open a PR to implement a "pure" SQLite backend, I'll merge it.
Author Public Key
npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet