new feature: switch glob to one recursive listing when the walk finds many directories
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with GlobLayer and the walk-versus-recursive-listing choice in src/daft-io/src/object_store_glob.rs, the file the payload names for the existing fanout_limit. Read #8966 to see how the current filter path works. Done means a directory-count limit that switches to one recursive listing, no duplicate entries after the switch, and limit, start_after, versions and delete markers unchanged.
索引モデルが issue の本文から書いたものです。
説明
Feature Description
GlobLayer filters one recursive listing when the walk would list every directory, and walks in all other cases (#8966). Add a third case: walk, and switch to one recursive listing of a directory when the walk finds many directories below it.
Problem and Solution
A recursive listing reads every key below its prefix. It costs fewer requests than the walk when the walk skips few directories, and more when the walk skips many. The pattern alone cannot tell these cases apart.
List requests on memory, counted as S3 pages of 1,000 keys, for a tree of 49,200 keys:
| pattern | walk (main) |
one recursive listing |
|---|---|---|
t/*/_meta.json |
201 | 2 |
*/*/m=03/*/*.json |
227 | 50 |
logs/*/m=03/d=05/*.json |
7 | 48 |
logs/*/*/ |
3 | 48 |
On real S3, with 1,000 keys under t/part=0..199/, t/*/*.parquet takes 201 requests and 51 s with the walk, and 1 request and 0.37 s with one recursive listing.
Proposed solution: count the directories that each walked listing returns. Past a limit, replace the rest of the walk below that directory with one recursive listing of it, filtered by the pattern. Daft does this with fanout_limit (default 1024) in src/daft-io/src/object_store_glob.rs.
Points to decide:
- The limit. The walk does not know the key count below a directory, so the limit can only use the directory count.
- After the switch, entries that the walk already returned must not repeat.
limit,start_after, versions and delete markers keep their current behavior.
Additional Context
Follow-up to #8966. Services with native glob, such as fs (#9018), are not affected.
- 主要言語
- Rust
- スター
- 5.5k
- フォーク
- 869
- 平均マージ
- 8時間 2分
- マージ済み PR(30日)
- 862
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/opendal のほかの issue
-
bug(services/fs): deleting "/" removes the configured root directory対応中かも @xgbtxy が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 81/100
apache/opendal#9635 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
core enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
apache/opendal#9572 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
fix(bindings/nodejs): reject negative and overflowing BigInt values in WriteOptions.chunk and Read/ReaderOptions.gap対応中かも @rohan4naik が今日担当しました。 オープンbindings/nodejs bug
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
apache/opendal#9569 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug(layers/throttle): throttle streaming ReadStream bytes instead of pre-charging ReadOptions::limit upper bounds on open()対応中かも @Xuanwo が今日担当しました。 オープンbug core
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
apache/opendal#9567 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bindings/c bindings/dotnet bindings/go bindings/java bindings/python bindings/ruby core integrations/object_store release release-blocker services/azblob services/azdls services/dropbox services/gcs_grpc services/git services/hf3fs services/redis services/remotestorage services/s3 website
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
apache/opendal#9560 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Choochmeque/tauri-plugin-webdriver#134 ·
メンテナーはふだん 17 日以内に返信
-
bug rust SDK & CLI & REST API
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
boxlite-ai/boxlite#3292 ·
メンテナーはふだん 1 日以内に返信
-
Android bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
anefzaoui/misterdownloadmanager#2516 ·
メンテナーはふだん 1 日以内に返信
-
editor ui
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
state:triage tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 89/100
agent8-cash/ethpayserver#731 ·
メンテナーはふだん 1 日以内に返信