Require more batch operations for TransactionClient
Opened this issue · 1 comments
blacktear23 commented
Require more batch operations for TransactionClient
such as RawClient
did. Such as:
- batch_put
- batch_scan
- batch_delete
- delete_range
ekexium commented
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 delete
s and put
s .
For pessimistic transactions, a more efficient way is first lock_keys
and then do multple delete
s or put
s. 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.