hanahmily opened a new issue, #13357:
URL: https://github.com/apache/skywalking/issues/13357

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no 
similar feature requirement.
   
   
   ### Description
   
   
   #### Proposed Solution  
   Refactor TopN query execution in data nodes into **two phases**:  
   1. **Local TopN Aggregation**:  
      - Each data node computes its **local TopN list** (e.g., `["entity0:100", 
"entity3:20", "entity4:5"]`).  
      - Only `entity_id` and aggregated values (e.g., sums/counts) are 
retained.  
   2. **Targeted Raw Data Fetch**:  
      - Data nodes fetch **only raw data points** matching the top `entity_id` 
list (e.g., `entity_id IN ("entity0", "entity3", "entity4")`).  
   
   #### Benefits  
   - **Reduced Network Traffic**: Only aggregated TopN metadata + targeted raw 
data is transferred.  
   - **Accuracy Guaranteed**: No truncation of raw data since filtering uses 
the TopN entity IDs.  
   -  **Backward-Compatible**: Works with existing TopN APIs and the liaison 
query aggregation procedure.  
   
   
   
   ### Use case
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request to implement this on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to