primal-caching-service icon indicating copy to clipboard operation
primal-caching-service copied to clipboard

Add filters to fetcher

Open abhay-raizada opened this issue 10 months ago • 3 comments

Hello Team,

It'd be great to have an optional feature to fetch events only based on specified filters instead of fetching everything on nostr, it would enable the caching service to be hosted on smaller hosts, and only for usecase specific tasks, IMO it would make it very versatile.

Are there any plans to do this? I can help contribute to this area as well.

abhay-raizada avatar Apr 18 '24 10:04 abhay-raizada

hi, filters for fetching are specified here:

https://github.com/PrimalHQ/primal-caching-service/blob/ef7d38933885dc25b0121f725de980c56e78052e/src/fetching.jl#L110-L111

pritk avatar Apr 18 '24 12:04 pritk

yes, but this is only author right? do you mean i can add new filters here?

abhay-raizada avatar Apr 18 '24 14:04 abhay-raizada

yes, this is place in code where you can add different filters if you want.

pritk avatar Apr 18 '24 23:04 pritk