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: [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