Size Limits for `accessible_to_user_ids` in Scoped API Keys

TLDR Navjot asked about the size limit of the accessible_to_user_ids field for scoped API keys. Jason said it can store 1000s of values without any issues.

Powered by Struct AI


Apr 19, 2023 (8 months ago)
Photo of md5-759125aa251a1e837ca3c11c24006b5f
06:51 PM
hey everyone!
I have a question about Scoped API Keys
In the documentation example of Scoped API Keys
it mentions using a field like accessible_to_user_ids to every document in the collection
and then creating a key with an embedded filter like: filter_by: accessible_to_user_ids:=1
my question is: How large can this accessible_to_user_ids field be before impacting performance?
As in how many users ids can you fit into that list before it’s a problem that impacts performance?
Doesn’t have to be an exact number but rough order of magnitude. 1000s, 10,000s, 100,000s, 1,000,000s?


Apr 20, 2023 (8 months ago)
Photo of md5-8813087cccc512313602b6d9f9ece19f
02:41 AM
I’ve seen users store 1000s of values in this field without any issues…