Hi,

My spark job writes into oracle db using:
df.coalesce(10).write.format("jdbc").option("url", url)
.option("driver", driver).option("user", user)
.option("batchsize", 2000)
.option("password", password).option("dbtable", tableName).mode("append").save()
It is much slow than writting into HDFS. The data to write is small.
Is this expected? Thanks for any clue.