I have many Create Tables, Inserts and Updates in my Spark streaming code operating on the Redshift tables. I am using Spark 2.2, spark-redshift-preview-3.0.0 jar and scala 2.11.8. It is taking more than 20 mins to insert/update 5000 rows in Redshift by the streaming job - this is exceeding my spark micro-batch window and making my system unstable.
What config params i should set to speedup my Redshift queries from Spark Streaming job? I have to insert and update atleast 10K rows per 5 mins.