while writing data from spark dataframe to PostgreSQL table , it is taking time for large tables which approx, contains 10million records