Rebase #268's Solr performance fixes onto main

オープン
#284 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
fastapi, python

調査の方向性

Start by comparing PR #268 with #231 and the current main branch to identify which observability changes are already covered and which performance changes remain. Review the Solr query and loading code, curie_lookup, and bulk_lookup, then rebase the remaining work and validate it. Done means the listed performance changes are on main and revalidated, ideally with before and after /status?full=true metrics.

索引モデルが issue の本文から書いたものです。

説明

performance

#268 ("Performance and observability improvements based on /status diagnostics") is open against base ci, not main. Its observability half has been superseded by #231, but its performance half is still valuable and currently stranded:

  • docValues=true on curie, types, taxa, clique_identifier_count
  • Force-merge to <=8 segments after loading (the index is read-only afterwards; production was running with 57 segments)
  • Replace the regex prefix filter curie:/MONDO:.*/ with a prefix-wildcard query curie:MONDO\:* plus input sanitisation — the regex form walks the whole term dictionary
  • Bound curie_lookup's Solr rows from a hard-coded 1,000,000 to the number of input CURIEs
  • Module-level shared httpx.AsyncClient via FastAPI lifespan instead of one per request
  • Parallelise bulk_lookup with an asyncio.Semaphore (BULK_LOOKUP_CONCURRENCY), preserving input order

These should be rebased onto main (dropping the parts #231 already covers) and re-validated, ideally with the /status?full=true metrics from #231 as before/after evidence.

主要言語
Python
スター
5
フォーク
4
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NCATSTranslator/NameResolution のほかの issue

NCATSTranslator/NameResolution の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。