https://www.ory.sh/ logo
#talk-keto
Title
# talk-keto
c

calm-xylophone-94385

01/10/2022, 12:31 PM
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

steep-lamp-91158

01/10/2022, 12:35 PM
Not yet, but something we thought about already as well
c

calm-xylophone-94385

01/10/2022, 12:40 PM
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

steep-lamp-91158

01/10/2022, 12:43 PM
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

calm-xylophone-94385

01/10/2022, 12:57 PM
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

steep-lamp-91158

01/10/2022, 1:13 PM
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 😉
2 Views