Hi! We are using Keto for a product we are buildin...
# talk-keto
c
Hi! We are using Keto for a product we are building and would like to only show authorized resources in a paginated list. Is there a way to batch check relation tuples via REST so we only have to do one request?
s
Not yet, but something we thought about already as well
c
We are dealing with a potentially very large object count, so getting a list of tuples from keto is not really an option for us
It seems that we might be forced to check every object with a separate request
s
We are dealing with a potentially very large object count, so getting a list of tuples from keto is not really an option for us
wouldn't a check per object make even less sense then? the list API allows you to only get the tuples based on filters and is paginated
c
We filter and sort by object fields via a MongoDB query, so we cannot get the objects from Keto first since we cannot do that there
Our workaround would be to keep our Mongo queries and then filter before returning the pages since the pages don't have to have identical sizes
s
I see, can you maybe add a short comment that explains your usecase to the issue? I think it is a valid point that needs some thought.
The solution you proposed seems fine for now, but I think we can find even a better one 😉