I'm sure this has already been discussed, but does anyone know if there's like a standardized "max request size" for relays? For example, if I open a subscription with an authors array of with 1000 pubkeys, that seems to work as expected, but trying to match against 10,000 pubkeys doesn't work at all - I'm assuming that relays just drop subscriptions with filters over a certain size, which makes sense, but I'd like to know what the limit is so I can truncate queries on the client side as necessary

Reply to this note

Please Login to reply.

Discussion

The default Strfry config has the following:

# Maximum records that can be returned per filter

maxFilterLimit = 500

# Maximum number of subscriptions (concurrent REQs) a connection can have open at any time

maxSubsPerConnection = 20

It's located here: https://github.com/hoytech/strfry/blob/master/strfry.conf

I don't know how many relays are rocking the default (I've bumped mine), but perhaps it's good to consider.