walterddr opened a new issue, #9292:
URL: https://github.com/apache/pinot/issues/9292

   Currently, if a query is run with the ORDER BY clause. data is 
   - in selection only, data is sorted and trimmed to the limit
   - in aggregation/group-by/distinct, data is unsorted but trimmed to the 
limit 
   
   This means that broker needs to do a full sorting algorithm. Where as if the 
data is pre-sorted in IntermediateResultsBlock. broke can do a simple k-sorted 
merge algorithm. which reduces order by time from O(N*logN) to O(N * logK) 
where K is number of data tables returned. 
   


-- 
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: commits-unsubscr...@pinot.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to