cockroachdb/cockroach

kv: expose byte limits through kv.Txn API

オープン

#63,661 opened on 2021/04/14

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Go (4,124 件のフォーク)batch import
A-kv-clientC-enhancementT-kvhelp wanted

Repository metrics

Stars
 (32,150 個のスター)
PR merge metrics
 (平均マージ 5d 4h) (30d で 26 merged PRs)

説明

Currently, the kv.Txn API exposes key limits through the maxRows arg (which is poorly named) of its Scan and ReverseScan methods, but it does not expose an ability to impose a byte limit. Byte limits were introduced into the kv proto API in https://github.com/cockroachdb/cockroach/commit/417aa0843dbc1b816d7326cf223e141aa817bd30. However, because of this limitation in the kv.Txn API, users who want byte limits need to construct raw roachpb protos to be able to use them.

We should add byte limits to the kv.Txn and kv.DB API.

Jira issue: CRDB-6709

コントリビューターガイド