client-rust icon indicating copy to clipboard operation
client-rust copied to clipboard

`pessimistic_lock` can be cached

Open ekexium opened this issue 4 years ago • 0 comments

Currently pessimistic_lock will always issue a request. If heartbeat is enabled, we don't have to lock the same key for multiple times. For get_for_update-like operations, we can have a separate cache to cache its value.

ekexium avatar Jun 22 '21 07:06 ekexium