Hey Is it possible to lookupResource
# spicedb
k
Hey, Is it possible to lookupResource with an array of subject ids?
v
it's not currently possible, you'll need to fire multiple lookup-resources concurrently. We recently released the
BulkCheck
API but that would only work in your use-case if you know the
resource_id
you also want to check.
k
alas I don't have it.
How expensive this operation of firing multiple lookup-resources could be?
v
lookup-resources is expensive on its own, but if you fire multiple calls SpiceDB will make sure to singleflight any duplicate access to the DB and reuse subproblem caches. I'd say try it and see how it fares.
r
any ETA on the
BulkCheck
API being added to the Go SDK?
k
Gotcha thanks @vroldanbet
v
@rierevin if it's not already available it's an oversight, we should have released them with 1.25
Cc @Joey in case the new build pipeline somehow didn't publish it
j
build pipeline doesn't update go
we'll update it tomorrow
r
Amazing, you guys are awesome!
Any update on the Go release?
v
Please note the API is still not available in SpiceDB Serverless, if that's how you planned to use it
8 Views