@reya in addition to the SQLite gossip store, also this PR should help:
If you have the opportunity to test it, let me know if it's faster.
GitHub
sdk: improve gossip concurrency with per-key semaphore system by yukibtc · Pull Request #1250 · rust-nostr/nostr
Replace the global single-permit semaphore with a per-key semaphore, improving updates concurrency.
Add unit tests to ensure the system is deadlock...