RSConnect: speed up pin_search by allowing using guid behind the scenes
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
まず pin_search と RSConnect のユーザーおよびコンテンツの GUID ルックアップパスを追跡し、次にファイルがどのようにキャッシュされるかを調べます。提案されている rsc+guid URI 形式と、一覧にある API リクエストを動作の指針として使用してください。キャッシュされたファイルで GUID を使用でき、通常の pin_* 呼び出しがユーザー提供の GUID なしでも引き続き動作し、内部の fast path がカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Currently, python pins with RSConnect needs to look up the user and content guid for actions like
fs.info("michael.chow/mtcars")
however, looking up the user guid requires iterating through all users. This is an expensive operation that R pins does as little as possible by using the guids whenver possible (through a local cache file).
Let's support something like
# similar protocol format to sqlalchemy uris
# may need to use "rsc://guid+<user_guid>
fs.info("rsc+guid://<user_guid>") # GET v1/users/{guid}
fs.info("rsc+guid://<user_guid>/<content_name>") # GET v1/content?name=<content_name>?user_guid=<user_guid>
fs.info("rsc+guid://content/<content_guid>") # GET v1/content/<content_guid>
Note that we must meet these criteria...
- Files are cached correctly (e.g. could use the guids for everything in the cache)
- Users do not need to specify guid in
pin_*methods - We could allow users to specify guid in
pin_*methods if it's not a lot of work. Otherwise, could start by having pins use it as an internal fast path.
- 主要言語
- Python
- スター
- 59
- フォーク
- 11
- 平均マージ
- 1時間 9分
- マージ済み PR(30日)
- 1
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rstudio/pins-python のほかの issue
-
.maint
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
rstudio/pins-python#280 ·
-
testing
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
rstudio/pins-python#196 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
rstudio/pins-python#354 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 55/100
rstudio/pins-python#352 ·
-
.documentation
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
rstudio/pins-python#348 ·
rstudio/pins-python の issue をすべて見る
似ている issue
-
feature:LinkChecker
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
digitalfabrik/integreat-cms#4594 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
EleutherAI/lm-evaluation-harness#4319 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
json_params_matcher fails on falsy top-level JSON primitives (0, False, "")対応中かも @mayureshsonawane17 が今日担当しました。 オープンWaiting for: Product Owner
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 5 日以内に返信