Apache Spark Basics with Python

85 / 86

Say, we want to persist records of an RDD into a Database such that each record becomes a row but we want to only open one connection per partition, which of the following is most effective and efficient?


Note - Having trouble with the assessment engine? Follow the steps listed here


No hints are availble for this assesment

Answer is not availble for this assesment

Please login to comment

2 Comments

Here, question is which transformation would be most effective? but foreachPartition is an action...question would be which action? please correct me if I am wrong

  Upvote    Share

You are right. I just corrected it.
Thank you @disqus_Nx65rCqYnK:disqus

  Upvote    Share