<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Longer execution time to write into the SQL server table from Spark Dataframe in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/longer-execution-time-to-write-into-the-sql-server-table-from/m-p/34621#M25358</link>
    <description>&lt;P&gt;I have 8gb of XML data loaded into different dataframes, there are two dataframes which has 24 lakh and 82 lakh data to be written to a&amp;nbsp;2 SQL server tables&amp;nbsp;which is taking so 2 hrs and 5 hrs of time to write it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below cluster&amp;nbsp;configuration &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Cluster"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1607iA5C6CC452BBCD21D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cluster" alt="Cluster" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the python code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df.write.format("jdbc").option("url",        jdbcUrl).partitionBy("C_Code").mode("append").option("dbtable","staging.tablename").option("user", jdbcUsername).option("password", jdbcPassword).save()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest me any other way to lower the execution time.&lt;/P&gt;</description>
    <pubDate>Sat, 13 Aug 2022 11:46:50 GMT</pubDate>
    <dc:creator>Sha_1890</dc:creator>
    <dc:date>2022-08-13T11:46:50Z</dc:date>
    <item>
      <title>Longer execution time to write into the SQL server table from Spark Dataframe</title>
      <link>https://community.databricks.com/t5/data-engineering/longer-execution-time-to-write-into-the-sql-server-table-from/m-p/34621#M25358</link>
      <description>&lt;P&gt;I have 8gb of XML data loaded into different dataframes, there are two dataframes which has 24 lakh and 82 lakh data to be written to a&amp;nbsp;2 SQL server tables&amp;nbsp;which is taking so 2 hrs and 5 hrs of time to write it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the below cluster&amp;nbsp;configuration &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Cluster"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1607iA5C6CC452BBCD21D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Cluster" alt="Cluster" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the python code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df.write.format("jdbc").option("url",        jdbcUrl).partitionBy("C_Code").mode("append").option("dbtable","staging.tablename").option("user", jdbcUsername).option("password", jdbcPassword).save()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest me any other way to lower the execution time.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 11:46:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/longer-execution-time-to-write-into-the-sql-server-table-from/m-p/34621#M25358</guid>
      <dc:creator>Sha_1890</dc:creator>
      <dc:date>2022-08-13T11:46:50Z</dc:date>
    </item>
  </channel>
</rss>

