nostr-dev-kit / ndk

Nostr Development Kit with outbox-model support
MIT License
352 stars 95 forks source link

High Memory Usage #274

Open mostafa-khaldi opened 12 hours ago

mostafa-khaldi commented 12 hours ago

I am experiencing an unusual spike of memory usage, previously I was using nostr-tools to manage my content, now I have migrated to NDK and this issue appears, knowing I am enabling the outbox model and using Dexie cache

const ndkInstance = new NDK({
  explicitRelayUrls: relaysOnPlatform,
  enableOutboxModel: true,
  mutedIds: bannedList,
});
await ndkInstance.connect();
ndkInstance.cacheAdapter = new NDKCacheAdapterDexie({ dbName: "ndk-store" });

Any idea of what causes it?