Or at least revisit where Otter starts counting. Currently we're using ExpiryAccessing, which means the timer starts from the last time the entry was accessed; 2x the quantization window means that the max life of an entry is 4x the quantization window, assuming that the access is smeared and the entry was created at the beginning of the quantization window and read at the end of the smeared quantization window.
We can probably tighten that up, either by changing the policy to be based on creation/write rather than access, or by making it so that the TTL is just the quantization window. This should reduce overall SpiceDB memory usage somewhat.
Or at least revisit where Otter starts counting. Currently we're using
ExpiryAccessing, which means the timer starts from the last time the entry was accessed; 2x the quantization window means that the max life of an entry is 4x the quantization window, assuming that the access is smeared and the entry was created at the beginning of the quantization window and read at the end of the smeared quantization window.We can probably tighten that up, either by changing the policy to be based on creation/write rather than access, or by making it so that the TTL is just the quantization window. This should reduce overall SpiceDB memory usage somewhat.