Large lookups
Hi!
We are getting timeouts when looking up large volumes of resources (e.g. making a lookup call that will return in the ten to hundred thousands of resources).
Sample call using the C# SpiceDB client:
var devicesResources = client.LookupResources(DeviceResourceType, ViewPermission, agent);
Sample error:
Grpc.Core.RpcException: Status(StatusCode="Unavailable", Detail="Socket closed", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1711012717.102200820","description":"Error received from peer ipv4:10.13.92.44:50051","file":"/var/local/git/grpc/src/core/lib/surface/call.cc","file_line":953,"grpc_message":"Socket closed","grpc_status":14}")
Question 1: We can also query the permission for these resources individually, but then we need a lot of requests. What is the preferred way of doing this?
Question 2: Is there a way of batching lookups, e.g. if we only want to get 1000 of the permitted resources at a time?
We're also investigating whether these timeouts are due to limitations of our cluster.
Thanks!