Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

JDBC works great if you have a large RDD that you want to persist in one go.

But if you are writing row by row you will need to implement your own batching algorithm and connection pooling to get any decent performance.



You could always use mapPartition to open one connection per partition.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: