my follows list is 210 pubkeys long (very small in contrast to others), after processing all my follows follows I end up with 15k+ pubs to cram into my db. this is the single choke point of alphaama right now and only a problem because indexedDB is shit (my code as well probably...)

working to fix this as it makes the browser unresponsive (sometimes crashes). it usually only happens the first time you run a query for your follows kind:3

Reply to this note

Please Login to reply.

Discussion

You should try using @snort/worker-relay

thanks, will take a look

You should be on time for lunch 😅

on my way :)

why are pulling follows follows?

pull your follows, and add others on a need basis, or even pull on the fly when needed then discard/keep in memory

because that's the people that will show on my timeline, as my follows interact with their follows. I'm not processing after that, but it's the bare minimum to have a more complete feed. it's not needed as nothing happens automatically, you need to run the query manually..

if you only do this with your active follows, the ones who posted a note in the day, it should decrease

You should look into the SQLite wasm that nostr:npub1v0lxxxxutpvrelsksy8cdhgfux9l6a42hsj2qzquu2zk7vc9qnkszrqj49 used in the short worker relay

Its surprisingly stable and its supported on a almost all browsers. Which I wasn't expecting