You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2019/08/27 15:59:53 UTC

[GitHub] [incubator-druid] himanshug opened a new pull request #8412: skip unnecessary aggregate(..) calls with LimitedBufferHashGrouper

himanshug opened a new pull request #8412: skip unnecessary aggregate(..) calls with LimitedBufferHashGrouper
URL: https://github.com/apache/incubator-druid/pull/8412
 
 
   ### Description
   
   This is a short patch removing unnecessary work done during execution of groupBy query with limit push down. When limit is pushed down to merge phase in the groupBy query processing , `aggregate(..)` is called for all aggregators whenever a new bucket is added to the underlying hash table. This is unnecessary when `sortHasNonGroupingFields=false` and newly added bucket did not find a place in the min-max-heap .  With `sortHasNonGroupingFields=false`, that row's position in overall ordering can never change so it is ok to skip the `aggregate(..)` calls. this improves performance for cases where you have large number of buckets with multiple complex aggregators.
   
   No behavior change is introduced in this PR.
   
   <hr>
   
   This PR has:
   - [X] been self-reviewed.
   - [X] been tested in a test Druid cluster.
   <hr>
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org