09/29/2022, 8:21 PM
Hi guys, I have a question about the usage of spicedb - I have a use-case where user need to see an inventory of documents (it is ordered by Document #, might be filtered by one or more attributes), the total number of documents is big like 10-50 millions. If we use spicedb to select documents that user has permission to view, as I understand correctly I will be able to get a list of resources that user has permission to view. My concern is that there could be 50 millions returned as a result of the query to spicedb, which I then will use to filter/sort and get the first page to show inventory page to the user. Is this the right way to use spicedb or there is a better way of crossing data from spicedb with the document storage(MongoDB)?