Closed alexgleason closed 9 months ago
Is that really the main data store?
yes, sqlite is the main data store. all supported nostr events are imported into a number of sqlite DB files.
structure of tables: https://github.com/PrimalHQ/primal-caching-service/blob/9ecb8718b4133d90a786e57a62d97a0991e95eab/src/cache_storage.jl#L206-L376
main event import function: https://github.com/PrimalHQ/primal-caching-service/blob/9ecb8718b4133d90a786e57a62d97a0991e95eab/src/cache_storage.jl#L704
Thank you, very awesome design!
I'm trying to understand this code. I see SQLite being used. Is that really the main data store? You're indexing almost the entirety of Nostr with SQLite? If so, how?