Searching and Paginating
# spicedb
c
Hi all, is there some documentation that highlights using AuthZed as a solution to Searc / Pagination with permissions?
b
It’s a really tricky problem. I haven’t seen great solutions to this problem in SpiceDB or in the industry as a whole.
c
Thanks for the info, yeah this problem is really biting us at the moment; we looked at OpenFGA as well which is based on Zanzibar and they have an example but after lots of back and forth its not even really full supported by them either - really tricky issue
b
But that only really reverses the problem though
At the end of the day, you’re trying to do an inner join on data across two services. I think the best you can do today is incrementally load results from one side and verify that they exist on the other.
You’ll probably get the best performance if you’re able to determine which side of the join is more selective and start there (do the permissions return fewer results or do the search filters return fewer results?)
j
correct, generally speaking you determine which side to filter on first, and then post-filter the other side