npawar edited a comment on issue #4602: First pass of GROUP BY with ORDER BY 
support
URL: https://github.com/apache/incubator-pinot/pull/4602#issuecomment-536017831
 
 
   Added a JMH Benchmark in the last commit. Simulated the logic in 
``CombineGroupByOperator`` and ``CombineGroupByOrderByOperator``.
   4 segments inserting 100k records each, concurrently.
   
   ``BenchmarkCombineGroupBy``:
   1. ``benchmarkConcurrentIndexedTableInCombineGroupBy`` - inserting into 
ConcurrentIndexedTable like in the PR code
   2. ``benchmarkOriginalCombineGroupBy`` - inserting into ConcurrentHashMap 
like in the original CombineGroupByOperator
   
   Conclusions:
   1. New code does at par/better in scenarios 
   - No order by
   - Order by, but buffer is so large that resize never triggered
   Therefore, **we should be good to enable this with a large buffer, and it 
will work well for usecases which will never trigger the resize**
   2. In the case where it didn’t work, the bottleneck is clearly resizing. So 
**we can now focus on optimizing the resize**
   <img width="698" alt="Screen Shot 2019-09-27 at 9 53 57 AM" 
src="https://user-images.githubusercontent.com/19693933/65786994-cc99cf00-e10c-11e9-88d9-489eac405d55.png";>
   
   
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to