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

   ### 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
   
   
   
   ### Description
   This issue aims to address the refactoring of the TopN aggregation result 
query process to improve the efficiency and accuracy of aggregations.
   
   ### Tasks
   
   1. **Custom Version Control**: Refactor the Measure's last-win version 
control to a custom version control. This new system should allow for different 
query types to utilize their respective version controls. While most measures 
will continue to use last-win, we need to implement a custom merge strategy 
specifically for TopN relevant measures.
   
   2. **Merging TopN Lists**: Modify the query and merge process to ensure that 
TopN lists are merged correctly. 
      - Compare the version of each data point sharing the same key.
      - Retain the most recent value based on the version.
      - Generate the final list based on filtered data points.
   
   4. **Two Layer Merge**: The local and distributed query processor both 
perform the merging process.
    
   3. **Result List Optimization**: Remove the node ID from the entity of the 
result list to streamline the data structure.
   
   
   ### 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