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

Require more batch operations for TransactionClient

Open blacktear23 opened this issue 3 years ago • 1 comments

Require more batch operations for TransactionClient such as RawClient did. Such as:

  • batch_put
  • batch_scan
  • batch_delete
  • delete_range

blacktear23 avatar Jan 16 '22 13:01 blacktear23

Hi, do you need them in your application?

batch_scan in transaction API is not supported by TiKV. If you really want it, please submit a feature request to tikv/tikv.

For optimistic transactions, batch_delete and batch_put are equivalent to multiple deletes and puts . For pessimistic transactions, a more efficient way is first lock_keys and then do multple deletes or puts. Maybe we could provide an friendlier interface to do this.

There exists a delete_range request supported by TiKV, and client-rust hasn't implemented it.

ekexium avatar Jan 17 '22 07:01 ekexium