02/15/2022, 3:05 AM
Sorry, probably shouldn't have used a loaded word like "batched". I meant being able check for several permissions in SpiceDB as part of one roundtrip, have it call its store only once (ideally, or the least amount of times possible), and get everything back as one response. As an analogy, if I have to get 5 items from a database I can call
SELECT * FROM item WHERE id = ?
5 times, or I can call
SELECT * FROM item where id IN (?, ?, ?, ?, ?)
and get a response with far less network overhead. Ideally, I'd like to do the equivalent to the latter with SpiceDB. If firing 5 goroutines and calling it a day is the best it can do, that's something I can deal with for now, but if I can avoid it that'd be sweet.