https://authzed.com logo
#spicedb
Title
# spicedb
l

lukewestby

04/14/2022, 3:22 PM
If I have this schema:
Copy code
definition user {}

definition foo {
  relation creator: user
  permission read: creator
}

definition bar {
  relation foo: foo
  permission read: foo->read
}
what strategy would I use for saving zedtokens so that I could use the cache to get all `bar`s that some
user
can
read
via
LookupResources
? So far I’ve been relying on fully consistent lookups but for some users that is far too computationally intensive