<?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: Reduce downtime of Postgres table - JDBC overwrite job in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/reduce-downtime-of-postgres-table-jdbc-overwrite-job/m-p/3362#M424</link>
    <description>&lt;P&gt;Hi @Siddharth Kanojiya​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We haven't heard from you since the last response from&amp;nbsp;&lt;A href="https://community.databricks.com/s/profile/0053f000000WIC7AAO" alt="https://community.databricks.com/s/profile/0053f000000WIC7AAO" target="_blank"&gt;@werners&lt;/A&gt;&amp;nbsp;(Customer)​&amp;nbsp;. Kindly share the information with us, and in return, we will provide you with the necessary solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 07:09:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-06-15T07:09:32Z</dc:date>
    <item>
      <title>Reduce downtime of Postgres table - JDBC overwrite job</title>
      <link>https://community.databricks.com/t5/data-engineering/reduce-downtime-of-postgres-table-jdbc-overwrite-job/m-p/3360#M422</link>
      <description>&lt;P&gt;I want to overwrite a&amp;nbsp;Postgresql table transactionStats which is used by the customer facing dashboards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table needs to be updated every 30 mins. I am writing a AWS Glue Spark job via JDBC connection to perform this operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spark dataframe write snippet -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df.write.format("jdbc").option("url", "connection_params").option("dbtable","public.transactionStats"). mode("overwrite").save()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am seeing a downtime on the dashboard while the table is being overwritten&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to avoid downtime? Any solutions? Staging table?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 19:45:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/reduce-downtime-of-postgres-table-jdbc-overwrite-job/m-p/3360#M422</guid>
      <dc:creator>siddharthk</dc:creator>
      <dc:date>2023-06-08T19:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce downtime of Postgres table - JDBC overwrite job</title>
      <link>https://community.databricks.com/t5/data-engineering/reduce-downtime-of-postgres-table-jdbc-overwrite-job/m-p/3361#M423</link>
      <description>&lt;P&gt;can you use rename table?  so load a temp table, rename target table to something else, rename temp table to target table.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 10:53:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/reduce-downtime-of-postgres-table-jdbc-overwrite-job/m-p/3361#M423</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-06-09T10:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce downtime of Postgres table - JDBC overwrite job</title>
      <link>https://community.databricks.com/t5/data-engineering/reduce-downtime-of-postgres-table-jdbc-overwrite-job/m-p/3362#M424</link>
      <description>&lt;P&gt;Hi @Siddharth Kanojiya​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We haven't heard from you since the last response from&amp;nbsp;&lt;A href="https://community.databricks.com/s/profile/0053f000000WIC7AAO" alt="https://community.databricks.com/s/profile/0053f000000WIC7AAO" target="_blank"&gt;@werners&lt;/A&gt;&amp;nbsp;(Customer)​&amp;nbsp;. Kindly share the information with us, and in return, we will provide you with the necessary solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 07:09:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/reduce-downtime-of-postgres-table-jdbc-overwrite-job/m-p/3362#M424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-15T07:09:32Z</dc:date>
    </item>
  </channel>
</rss>

