Hello again, I want to ask this other
# spicedb
f
Hello again, I want to ask this other question separately than the first one. It is regarding the time gap between a change and until the cache is updated. We write a permission then the watcher is triggerred. Then we lookup the subjects for that change, but if we do this too fast, the new objectId is not in the lookup. only if we wait some seconds like 10 until the data is available in spicedb. Is there any way to speed this up?
v
SpiceDB has a tunable consistency model. If you do requests with
minimize_latency
consistency, the server with perform the operation with whatever it has on the cache for the current revision quantization window. In order to "read your writes" you need to pass the zedtoken of the corresponding relationship write in your request.