Rebase #268's Solr performance fixes onto main

Đang mở
#284 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
42/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
fastapi, python
Lĩnh vực
backend, performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
5
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NCATSTranslator/NameResolution

Tất cả issue của NCATSTranslator/NameResolution

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.