Is lookupresources computed in realtime
# spicedb
c
Is lookupresources computed in realtime or does it use a cache? My problem is, i have a user that has to load multiple list endpoints on page load. All of these list endpoints call lookupresources with the same parameters and it seems that they slow eachother down. The call returns ~1000 ids. What would be the best way to handle this?
y
LookupResources
is cached and uses singleflight dispatch - multiple requests for the same resources should not slow each other down.
i'd start by asking whether you need LR here - if you can bulkcheck instead for this use case i'd recommend that
6 Views