titan icon indicating copy to clipboard operation
titan copied to clipboard

Use 'batch get' to improve the performance of 'multi...exec'

Open shafreeck opened this issue 5 years ago • 0 comments

It is inefficient to fetch values from TiKV multiple times sequentially. For example

multi
hset uid name tom
hset uid age 23
hset uid career engineer
exec

The fields of the uid should be checked its existence before actually inserting or updating a field. Fetching every field (name, age, career) sequentially causes high latency. Maybe we can fetch all the fields at once by batch.

shafreeck avatar May 29 '19 04:05 shafreeck