[feat][trace] optimize ListTrajectoryOApi to single CK query - #669
Merged
Merged
Conversation
… switch Reduce two ClickHouse reads in GetTrajectories to one by fetching all spans with full columns in a single query, then filtering in memory. Controlled by enable_single_query flag in trajectory_metadata_config, default off to preserve original behavior.
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #669 +/- ##
==========================================
- Coverage 78.82% 78.82% -0.01%
==========================================
Files 707 707
Lines 87823 87872 +49
==========================================
+ Hits 69227 69264 +37
- Misses 14607 14615 +8
- Partials 3989 3993 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
fankuo
previously approved these changes
Sep 17, 2026
kidkidkid
previously approved these changes
Sep 17, 2026
kidkidkid
approved these changes
Sep 17, 2026
SharkeyChen
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… switch
Reduce two ClickHouse reads in GetTrajectories to one by fetching all spans with full columns in a single query, then filtering in memory. Controlled by enable_single_query flag in trajectory_metadata_config, default off to preserve original behavior.
What type of PR is this?
Check the PR title
(Optional) Translate the PR title into Chinese
(Optional) More detailed description for this PR(en: English/zh: Chinese)
en:
zh(optional):
(Optional) Which issue(s) this PR fixes