Reputation: 1
Please, there is a configuration or params to do this:
dataFrame.write.mode(saveMode).jdbc(url, "tablename", new java.util.Properties())
Command is written in Scala, Apache Spark 1.6
That takes a DataFrame and inserts data in PostgreSQL row by row, one by one. We need to do this in batch mode.
Anyone knows if exists any configuration or another way to accomplish that?
Thanks in advance
Upvotes: 0
Views: 3691