<?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 Improving the use of a PostgreSQL-based database as a target in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2141733#M8241</link>
    <description>&lt;P&gt;Hi everyone!!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When using PostgreSQL as a target, we are facing some challenges related to CDC performance.&lt;/P&gt;
&lt;P&gt;When the number of transactions reaches thousands, the CDC takes longer than expected compared to replications carried out in other DBMS (Oracle, for example).&lt;/P&gt;
&lt;P&gt;In other words, transactions that take around 10 seconds to be applied using Oracle as a target, take around 2 minutes to be applied using PostgreSQL as a target.&lt;/P&gt;
&lt;P&gt;Do you have knowledge about configurations in PostgreSQL to support a large volume of data update?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 19:01:58 GMT</pubDate>
    <dc:creator>Vinicius_Luiz</dc:creator>
    <dc:date>2023-11-27T19:01:58Z</dc:date>
    <item>
      <title>Improving the use of a PostgreSQL-based database as a target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2141733#M8241</link>
      <description>&lt;P&gt;Hi everyone!!&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When using PostgreSQL as a target, we are facing some challenges related to CDC performance.&lt;/P&gt;
&lt;P&gt;When the number of transactions reaches thousands, the CDC takes longer than expected compared to replications carried out in other DBMS (Oracle, for example).&lt;/P&gt;
&lt;P&gt;In other words, transactions that take around 10 seconds to be applied using Oracle as a target, take around 2 minutes to be applied using PostgreSQL as a target.&lt;/P&gt;
&lt;P&gt;Do you have knowledge about configurations in PostgreSQL to support a large volume of data update?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Replicate" id="qlikReplicate"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 19:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2141733#M8241</guid>
      <dc:creator>Vinicius_Luiz</dc:creator>
      <dc:date>2023-11-27T19:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Improving the use of a PostgreSQL-based database as a target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2141849#M8253</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;The first thing to do is to check if the db is optimized, perhaps it needs tables and indexes rebuild, and also regularly updating the db statistics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Boaz&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 08:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2141849#M8253</guid>
      <dc:creator>boaz_newman</dc:creator>
      <dc:date>2023-11-28T08:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Improving the use of a PostgreSQL-based database as a target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2141860#M8254</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;To add more onto Boaz Suggestion. Any&amp;nbsp;&lt;SPAN&gt;target&lt;/SPAN&gt;&amp;nbsp;database is no different from the Source database. Qlik Replicate Works in the Same Way as any other Application connects with the Database to apply Changes fetched from the Source db. to Apply changes via DML.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will Follow the same principle. It Submit the Querry as an Application does, and Server generate execution plan or profile is to execute the DML changes faster.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And to make Changes faster one should follow the Suggestion or recommendation by Database help document.&lt;/P&gt;
&lt;P&gt;hope this helps.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sushil Kumar&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 08:44:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2141860#M8254</guid>
      <dc:creator>SushilKumar</dc:creator>
      <dc:date>2023-11-28T08:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Improving the use of a PostgreSQL-based database as a target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2142124#M8276</link>
      <description>&lt;P&gt;Hi Boaz.&lt;/P&gt;
&lt;P&gt;Thanks for the contribution!&lt;/P&gt;
&lt;P&gt;We always create tables with indexes and primary keys corresponding to the source database. Furthermore, we carried out an analysis of the PostgreSQL database and found that table statistics are being properly computed by PostgreSQL's internal procedures.&lt;/P&gt;
&lt;P&gt;I was researching some settings in the database to optimize transaction performance and found parameters such as: maintenance_work_mem, checkpoint_timeout, max_connections. Have you had experience adjusting these database parameters?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 20:20:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2142124#M8276</guid>
      <dc:creator>Vinicius_Luiz</dc:creator>
      <dc:date>2023-11-28T20:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Improving the use of a PostgreSQL-based database as a target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2142303#M8290</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I have no experience optimizing a Postgres db.&lt;/P&gt;
&lt;P&gt;There are two significant points that you mentioned:&lt;/P&gt;
&lt;P&gt;1. "&lt;SPAN&gt;When the number of transactions reaches thousands..." - why are there so many concurrent transactions on the target db?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. "transactions that take around 10 seconds to be applied using Oracle as a target, take around 2 minutes to be applied using PostgreSQL as a target" - this indicates that there is a big difference between the Oracle target and the Postgres one. There could be many reasons for that:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Differences between the resources (server, cpu, memory, etc.)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Differences between the db configuration and optimization.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Differences between Oracle and Postgres&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Anyway, as my colleague mentioned, Replicate sends SQL executable statements to the target (in bulk apply mode, by default) the rest is up to the target.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;boaz&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 09:56:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2142303#M8290</guid>
      <dc:creator>boaz_newman</dc:creator>
      <dc:date>2023-11-29T09:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Improving the use of a PostgreSQL-based database as a target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2142531#M8292</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;1. I referred to the number of operations performed, I'm sorry. Some of our tables have a reasonably high volume of updates.&lt;/P&gt;
&lt;P&gt;2. Yes, we are considering improving the server, CPU, memory, etc. However, before that we are researching PostgreSQL database configurations that could improve performance.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2023 17:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2142531#M8292</guid>
      <dc:creator>Vinicius_Luiz</dc:creator>
      <dc:date>2023-11-29T17:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Improving the use of a PostgreSQL-based database as a target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2142535#M8293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/175433"&gt;@Vinicius_Luiz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In conjunction with checking the target performance you might consider engaging our Professional Services team to ensure your Replicate task is tuned properly for your use case. You can contact your account manager to initiate this process.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2023 15:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2142535#M8293</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2023-11-30T15:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Improving the use of a PostgreSQL-based database as a target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2500224#M13495</link>
      <description>&lt;P&gt;We do have a similar problem , can you share what was the solution applied to resolve this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Oracle syncing faster whereas postgresql taking longer time to sync CDC&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 09:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2500224#M13495</guid>
      <dc:creator>GELS</dc:creator>
      <dc:date>2025-01-07T09:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Improving the use of a PostgreSQL-based database as a target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2500771#M13503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/303340"&gt;@GELS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;When using PostgreSQL as the target, there are additional steps before writing changes to a temporary table:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Changes are written into a CSV file.&lt;/LI&gt;
&lt;LI&gt;Replicate uploads the CSV file to PostgreSQL.&lt;/LI&gt;
&lt;LI&gt;The CSV file data is copied to a temporary table.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;It could be a reason why the performance is not as good as that of other databases. You can enable tracing on TARGET_APPLY to identify which steps consumed the most time.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 09:36:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2500771#M13503</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2025-01-10T09:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Improving the use of a PostgreSQL-based database as a target</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2500851#M13504</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/303340"&gt;@GELS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp;suggestion, you can also elevate logging for performance to trace which will confirm if the latency you are seeing is on the source, target, or Replicate server.&lt;/P&gt;
&lt;P&gt;If you would like help tuning the task to perform as well as it can please consider asking about Professional Services help (fee based) with your Account Manager.&lt;/P&gt;
&lt;P&gt;If it is slow due to an error condition, or applying changes in one-by-one mode, please open a support case.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Dana&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 15:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Improving-the-use-of-a-PostgreSQL-based-database-as-a-target/m-p/2500851#M13504</guid>
      <dc:creator>Dana_Baldwin</dc:creator>
      <dc:date>2025-01-10T15:53:10Z</dc:date>
    </item>
  </channel>
</rss>

