Dandandan commented on issue #15375:
URL: https://github.com/apache/datafusion/issues/15375#issuecomment-2798726588

   Really nice observation! I think we should drive this further.
   
   Some further observations I saw when looking at the current implementation 
on master for the in memory merging part:
   
   * the in memory batches are not cleared after batches are sorted
   * it is needlessly using `spawn_buffered` in the code for streaming merge () 
sorting can be done on the spot here and batches dropped as soon as possible.


-- 
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: github-unsubscr...@datafusion.apache.org

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


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

Reply via email to