jayzhan211 commented on PR #27732:
URL: https://github.com/apache/datafusion/pull/27732#issuecomment-7313297502

   @alamb Yes, the one-core part was there before this PR, and it's tracked as 
#27003: when sorted inputs cover separate key ranges, the merge reads them one 
at a time. I don't think the memory trade-off explains these numbers, though. 
It holds for `ORDER BY`, where dropping the sort takes peak memory from 380 MiB 
to 120 MiB. The largest slowdowns are the `GROUP BY` cases (0.22 s to 1.36 s), 
and on `main` those run as a hash aggregate over about 5.6k hourly groups with 
no sort, so there is no buffer to save.
   
   #27883 removes most of the per-row cost, but it also speeds up `main` (UTC 
`GROUP BY` hour drops from 0.208 s to 0.047 s there), while the order-aware 
`GROUP BY` plan still runs on one core.
   


-- 
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]


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

Reply via email to