Why Nostr? What is Njump?
2023-12-17 23:40:54
in reply to

Yuki Kishimoto on Nostr: It's possible to integrate any database, also ones that not support arbitrary ...

It's possible to integrate any database, also ones that not support arbitrary queries, by using the `DatabaseIndexes`.

All the current backends available for nostr-sdk (SQLite, indexeddb, RocksDB, ...) rely on it, also SQLite that has the ability to perform complex queries.

The flow under the hood is: build in-memory indexes (700_000 events are indexed in ~1.5 sec, not faster due to param/replaceable and deletion events checks), query indexes by filters and use the output (event IDs) to get full events from persistent DB.
Author Public Key
npub1drvpzev3syqt0kjrls50050uzf25gehpz9vgdw08hvex7e0vgfeq0eseet