<?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 Re: Delta Lake Table Daily Read and Write job optimization in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/delta-lake-table-daily-read-and-write-job-optimization/m-p/71799#M34404</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/92184"&gt;@AH&lt;/a&gt;&amp;nbsp;&amp;nbsp;- we can try out the config&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if read or fetch from postgres is slow , we can increase the fetchsize , numPartitions (to increase parallelism). kindly try to do a df.count() to check on slowness.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html" target="_blank"&gt;https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If the write is slow, kindly try to a write the data to a temp table first before merge to see if this is an issue due to merge.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jun 2024 19:51:23 GMT</pubDate>
    <dc:creator>shan_chandra</dc:creator>
    <dc:date>2024-06-05T19:51:23Z</dc:date>
    <item>
      <title>Delta Lake Table Daily Read and Write job optimization</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-lake-table-daily-read-and-write-job-optimization/m-p/71710#M34384</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AH_0-1717569489175.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8044iBE9DD885902E85EB/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AH_0-1717569489175.png" alt="AH_0-1717569489175.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have created 7 job for each business system to extract product data from each postgress source then write all job data into one data lake delta table [raw_product].&lt;/P&gt;&lt;P&gt;each business system product table has around 20 GB of data.&lt;/P&gt;&lt;P&gt;do the same thing for 15 table .&lt;BR /&gt;&lt;BR /&gt;is any way to read and write fast in delta tables&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one job looks like the one below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AH_1-1717572455868.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8045i9A6026F0E4D48027/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AH_1-1717572455868.png" alt="AH_1-1717572455868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;daily day loaded into delta table by using merge command&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AH_3-1717572644640.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8047i3943B7B9824E3364/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AH_3-1717572644640.png" alt="AH_3-1717572644640.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AH_2-1717572557758.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/8046i538A965F8BFA18D8/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="AH_2-1717572557758.png" alt="AH_2-1717572557758.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 07:26:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-lake-table-daily-read-and-write-job-optimization/m-p/71710#M34384</guid>
      <dc:creator>AH</dc:creator>
      <dc:date>2024-06-05T07:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delta Lake Table Daily Read and Write job optimization</title>
      <link>https://community.databricks.com/t5/data-engineering/delta-lake-table-daily-read-and-write-job-optimization/m-p/71799#M34404</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/92184"&gt;@AH&lt;/a&gt;&amp;nbsp;&amp;nbsp;- we can try out the config&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if read or fetch from postgres is slow , we can increase the fetchsize , numPartitions (to increase parallelism). kindly try to do a df.count() to check on slowness.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html" target="_blank"&gt;https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;If the write is slow, kindly try to a write the data to a temp table first before merge to see if this is an issue due to merge.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 19:51:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/delta-lake-table-daily-read-and-write-job-optimization/m-p/71799#M34404</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2024-06-05T19:51:23Z</dc:date>
    </item>
  </channel>
</rss>

