No way to query past Query.Prefix?
まだ誰も着手していません。
評価
調査の方向性
Query API と、go-ds-badger の 270 行目付近に示されているイテレーターパスから始め、次に Prefix を尊重する必要がある datastore の実装を比較してください。API の動作を決める前に、既存のコメント履歴を確認してください。seek とスキャンのセマンティクスについて合意され、実装が一貫して更新され、境界付きと境界なしの両方のイテレーションがカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi gents!
Currently, Query.Prefix is used to do the initial seek when a Query begins, and iteration only continues while that prefix holds. There needs to be a flag that basically says, hey, don't use Prefix once iteration has begun. Otherwise, there's no way to effectively do a seek and do an arbitrary amount of scanning. This seems like a critical feature to leave behind, yikes.
Hopefully, I'm missing something!?
For example, in go-ds-badger: (line 270+)
it := txn.NewIterator(opt)
it.Seek(prefix)
...
qrb.Process.Go(func(worker goprocess.Process) {
...
for sent := 0; it.ValidForPrefix(prefix); sent++ {
...
}
}
...
could be enhanced to:
it := txn.NewIterator(opt)
it.Seek(prefix)
if q.PrefixOnlySeeks {
prefix = nil
}
...
Adding this would be easy, but all the impls would need to be updated of course. So maybe it's done as a selectively available feature?
This is a dealbreaker for us, but we love Datastore and want to use and support it! If some at PL agrees to accept our pull requests in a timely fashion, we'll help do the work. I'm sad we're now in this position, and would take less than a few mins for dbs like leveldb, badger, and bolt. What do y'all think?
We kindly need resolution on this relatively soon one way or the other so that we know we need to pass on Datastore.
Thanks,
Drew
- 主要言語
- Go
- スター
- 248
- フォーク
- 68
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ipfs/go-datastore のほかの issue
-
exp/novice help wanted kind/enhancement status/ready
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ipfs/go-datastore#160 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ipfs/go-datastore#139 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
ipfs/go-datastore#102 · コメント 5 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ipfs/go-datastore#101 · コメント 4 件 · リアクション 1 件 ·
-
Add a Rename method?再び着手できるかも @schomatis が 2964 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
ipfs/go-datastore#100 · コメント 3 件 · 担当者 2 名 ·
ipfs/go-datastore の issue をすべて見る
似ている issue
-
area/networking kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
siderolabs/talos#14972 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
kubectl wait outputs cryptic "error: unrecognized condition: []" when --for is omitted対応中かも @muskan-creates352 が今日担当しました。 オープンkind/bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
kubernetes/kubectl#1910 · コメント 1 件 ·
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
stacklok/toolhive-catalog#1967 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
unbound-force/gaze#353 ·
メンテナーはふだん 1 日以内に返信