-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
Description
Currently the cache invalidation logic depends on FoundationDB. After each call to /batch/commit
, we store the set of pages mutated by the transaction into a special keyspace in FDB, keyed by the commit versionstamp. When a later request to /stat
comes in, keys in the range (client_last_known_commit_version, current_read_version)
are scanned and returned to the client so that they can invalidate their caches.
This results in a lot of temporary data that is written once and read a few times. It is a waste to let these data go through the entire FDB transaction & storage systems, and a better design is possible.