agatedb icon indicating copy to clipboard operation
agatedb copied to clipboard

Feature Request: get key only

Open zhangjinpeng87 opened this issue 2 years ago • 0 comments

Some times we just want to check if a key is existed in the DB, for example when we call transaction put to insert a row to TiKV we need to check if the key exist(in TiKV we call it write conflict check).

Currently we use get to check if the key exist, but the get will also return the value which will cost extra memcpy. If we can add a key only read option for get, we can eliminate the memcpy of value part.

zhangjinpeng87 avatar Jun 26 '22 14:06 zhangjinpeng87