You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/09/26 11:47:47 UTC

[GitHub] [spark] lxian commented on pull request #34099: dataset - toIterator

lxian commented on pull request #34099:
URL: https://github.com/apache/spark/pull/34099#issuecomment-927291636


   Correct me if I am wrong. I think toLocalIterator() is going to submit multiple jobs as you iterate through the result.
   
   In my case, I would like to submit only one job and collect all results from all partitions to the driver first. And then do the iteration. I think in this way, I can get the result faster (I can run all partitions in parallel and save the scheduling overhead) and also save the memory on deserialization.


-- 
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: reviews-unsubscribe@spark.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org