POST to /listFolders is slow
オープン
bug
- 主要言語
- Haskell
- スター
- 1.3k
- フォーク
- 201
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When loading the CodeWorld home page, the slowest part by far is loading the existing folders. This request takes over a second. It's also sent twice, when it shouldn't need to be.
Should figure out why it takes so long. My guess is that the directory listing for data/codeworld/projects is too long, and it might help to shard it by the first few characters, the same way we do for data/codeworld/user. But that's just a guess.
コントリビューションガイド
調査の方向性
CodeWorld のホームページの読み込み時に使用される POST /listFolders エンドポイントから始め、リクエストに1秒以上かかる理由と、2回送信される理由を計測します。data/codeworld/projects のディレクトリ一覧表示の動作を調査し、data/codeworld/user と比較します。フォルダーリクエストが不要に重複しなくなり、そのパフォーマンスの問題が解決されていれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- haskell
- 領域
- api, performance
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100