new feature: switch glob to one recursive listing when the walk finds many directories
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Rust
- Estrellas
- 5.5k
- Forks
- 869
- Merge medio
- 8 h 2 min
- PR fusionados (30 d)
- 862
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de apache/opendal
-
bug(services/fs): deleting "/" removes the configured root directoryPosiblemente ocupada @xgbtxy la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 81/100
apache/opendal#9635 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
core enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
apache/opendal#9572 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
fix(bindings/nodejs): reject negative and overflowing BigInt values in WriteOptions.chunk and Read/ReaderOptions.gapPosiblemente ocupada @rohan4naik la tomó hoy. Abiertobindings/nodejs bug
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
apache/opendal#9569 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
bug(layers/throttle): throttle streaming ReadStream bytes instead of pre-charging ReadOptions::limit upper bounds on open()Posiblemente ocupada @Xuanwo la tomó hoy. Abiertobug core
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
apache/opendal#9567 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
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
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
apache/opendal#9560 · 3 comentarios · 1 reacción ·
Los mantenedores suelen responder en 1 día
Todos los issues de apache/opendal
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Choochmeque/tauri-plugin-webdriver#134 ·
Los mantenedores suelen responder en 17 días
-
bug(c-sdk): boxlite_box_exec does not check runtime liveness before dispatching streaming execAbiertobug rust SDK & CLI & REST API
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
boxlite-ai/boxlite#3292 ·
Los mantenedores suelen responder en 1 día
-
Android bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
anefzaoui/misterdownloadmanager#2516 ·
Los mantenedores suelen responder en 1 día
-
editor ui
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
state:triage tech-debt
Dificultad 2/5 1-3 horas Aptitud para principiantes 89/100
agent8-cash/ethpayserver#731 ·
Los mantenedores suelen responder en 1 día