[Task] Establish systematic performance baselines and optimization tracking
Maintainer thường phản hồi trong vòng 1 ngày
@contrueCT đang làm issue này rồi.
Từ ngày 16/10/2026.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java
- Lĩnh vực
- databases, performance
Hướng nghiên cứu
This is a long-running tracking task, not a single change. Start with the linked Server PR #3342, which fixes lost Kout results, and its measurement review, to see which benchmark setup it used. The first concrete step would be a reproducible, correctness-checked Kout baseline with recorded commands, data generation, and environment details. Done means that baseline exists and candidate optimizations are ranked against it, not that any optimization is merged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Goal
Track long-term, evidence-driven performance work across HugeGraph traversal and its shared execution/collection paths. Start with Kout as a reproducible case, then extend to other representative operations when measurements reveal shared bottlenecks.
Optimize end-to-end efficiency under realistic workloads, rather than greedily improving one method, microbenchmark, or configuration at the expense of correctness, memory, latency, or concurrent throughput.
Starting evidence
🔗 Server #3342 fixes lost Kout results by serializing shared result-set updates and distinct-limit admission. Preserve this correctness guarantee. (Other cases like)
Bounded measurements and limitations show workload-dependent trade-offs between internal parallelism and concurrent requests. They do not establish a production regression caused by the fix, isolate monitor cost, or establish production-wide performance acceptance. No narrowed-lock optimization has been benchmarked.
This is a long-term task, not an additional 1.8 release gate. Candidate optimizations below are hypotheses to evaluate, not commitments to implement.
TODO
- Establish a reusable, correctness-checked baseline and retain reproducible commands, data generation, raw results, environment details, and exact tested revisions.
- Profile representative end-to-end workloads before prioritizing changes.
- Rank opportunities by measured user impact, resource cost, implementation risk, and maintenance burden.
- Implement justified optimizations separately, with before/after comparisons against a correct baseline.
- Add stable regression coverage and document deployment/concurrency trade-offs.
- Expand coverage to related traversals and shared infrastructure as evidence warrants.
Candidate investigations
- Internal worker counts, executor reuse/admission, and resource budgets across concurrent requests.
- Bounded/lazy edge-query and iterator preparation to avoid unnecessary work after limits are satisfied.
- Primitive IdSet bulk union to reduce numeric-ID wrapping during layer merges.
- Empty-frontier termination and avoidable allocation/cancellation overhead.
- Critical-section scope or aggregation strategies only where profiling justifies them; preserve exact distinct limits, deduplication, visibility, resource cleanup, and off-heap ID safety.
Measurement and acceptance
- Cover single and concurrent requests; several worker settings including the actual default; numeric/string IDs; unique/duplicate/convergent graphs; finite/unlimited limits; nearest modes; and representative graph sizes.
- Include relevant backends and full API/service paths, not only isolated consumers. Distinguish warmed caches from genuinely cold storage.
- Record throughput, latency distributions, CPU, allocation/GC, memory, and lock/scheduling observations. Use sufficient independent runs, warm-up, sustained durations, and variability reporting; short repeated samples are not independent experiments or production tail-latency proof.
- Verify complete results where deterministic, exact counts and legal results for bounded queries, plus cancellation, capacity and resource-lifecycle behavior.
- Agree workload-specific acceptance budgets before claiming success. Check for displaced costs and regressions in other supported workloads.
- Change one causal factor at a time where practical. Report inconclusive results honestly; do not use unsafe old concurrent behavior as a performance target.
Keep findings and follow-up PRs linked here so improvements accumulate into a coherent performance baseline rather than isolated tuning.
- Ngôn ngữ chính
- Java
- Star
- 3.2k
- Fork
- 640
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 89
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/hugegraph
-
[Bug] PD task REST: balanceLeaders throws a bare HTTP 500 during the balance-shard window, and task responses cannot be told apart from a no-op or a follower answerCó thể đã có người làm @pallavithegod đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
apache/hugegraph#3231 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] CI accepts obsolete PR targets after retargeting or force-pushCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Feature] Apache Ranger Authorization Plugin for HugeGraphCó thể đã có người làm @vaijosh đã nhận 14 ngày trước. Đang mởfeature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/hugegraph
Issue tương tự
-
status: waiting-for-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
spring-projects/spring-ai#7206 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area/cli
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 78/100
quarkusio/quarkus#57623 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
jhipster/prettier-java#1113 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug follow-up lane:backlog
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Sanne/incus-spawn#1576 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Pasting code into a comment adds imports for the pasted codeCó thể đã có người làm @ravnskjaer đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
eclipse-jdt/eclipse.jdt.ui#3275 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày