Bryan
03/01/2022, 4:45 PMzed import
. It after that, the gRPC request gets too large and zed
would fail with
Error: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (6989893 vs. 4194304)
To get around this, I ended up using one of the gRPC clients the Authzed folks have and I parsed and batched the relationships myself. I think the zed
client could easily be modified to batch very large imports by adding some batching logic here: https://github.com/authzed/zed/blob/e9bfd18aee346632fdbd08ecdb6a38f3a41c6098/cmd/zed/import.go#L144-L150