<?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: Replication slot for specific tables in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424162#M9829</link>
    <description>&lt;P&gt;Thats ok, I am aware about the replicate slot creation process.&lt;/P&gt;
&lt;P&gt;Kindly help me with task settings that I can do to faster the wal/slot processing at replicate end&amp;nbsp; ?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2024 14:50:05 GMT</pubDate>
    <dc:creator>gayatri235</dc:creator>
    <dc:date>2024-02-27T14:50:05Z</dc:date>
    <item>
      <title>Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2423715#M9802</link>
      <description>&lt;P&gt;Hello Team,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am facing latency and replication slot growth issue for our source Postgresql.&lt;/P&gt;
&lt;P&gt;We have this table , highly transacting. We removed this table from our replication task, still I see this table in our logs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can we create replication slot for specific tables only ?&lt;/P&gt;
&lt;P&gt;I came across this pg_replication_sets which is available after postgresql 14 and later.&lt;/P&gt;
&lt;P&gt;Can this be used&amp;nbsp; ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 18:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2423715#M9802</guid>
      <dc:creator>gayatri235</dc:creator>
      <dc:date>2024-02-26T18:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424037#M9820</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/243606"&gt;@gayatri235&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thank you for reaching out to the Qlik Community.&lt;BR /&gt;&lt;BR /&gt;From my understanding, the WAL records all changes made to data file.&amp;nbsp;I am afraid the answer is "no".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure what "pg_replication_sets" is. Could you share your idea in detail?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 10:58:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424037#M9820</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-02-27T10:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424057#M9821</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/243606"&gt;@gayatri235&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Besides&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp;comments, I think you are meaning&amp;nbsp;&lt;SPAN&gt;&lt;A title="replication_set" href="https://www.enterprisedb.com/docs/pgd/latest/repsets/#:~:text=Replication%20sets%20v,as%20the%20group." target="_blank" rel="noopener"&gt;replication_set&lt;/A&gt;. In general spreading different tables to multiple slots does not help in reducing the WAL size. However it may introduce multiple slots/tasks to read the changing data from WAL in parallel (rather than in serial) from PostgreSQL, if the hardware/configuration and the IO/network are not bottleneck in PostgreSQL source sides. Maybe 2 slots help however we need tests in your environment, and in my experience please do not use too many slots eg 3+. Any feedback are welcome.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 11:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424057#M9821</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-27T11:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424152#M9826</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/125525"&gt;@DesmondWOO&lt;/a&gt;&amp;nbsp;, I found on this chat GPT.&lt;/P&gt;
&lt;P&gt;-- Step 1: Create a logical replication set&lt;BR /&gt;SELECT pg_create_logical_replication_set('my_replication_set', '{"table1", "table2"}');&lt;/P&gt;
&lt;P&gt;-- Step 2: Create a replication publication&lt;BR /&gt;CREATE PUBLICATION my_publication FOR TABLE my_replication_set;&lt;/P&gt;
&lt;P&gt;-- Step 3: Create a logical replication slot associated with the replication publication&lt;BR /&gt;SELECT * FROM pg_create_logical_replication_slot('my_slot', 'pgoutput');&lt;/P&gt;
&lt;P&gt;-- Optionally, you can specify the publication to use for the slot:&lt;BR /&gt;-- SELECT * FROM pg_create_logical_replication_slot('my_slot', 'pgoutput', 'my_publication');&lt;/P&gt;
&lt;P&gt;Let me know , if this works&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 14:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424152#M9826</guid>
      <dc:creator>gayatri235</dc:creator>
      <dc:date>2024-02-27T14:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424155#M9827</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;, Can you tell me how I can see bottleneck at source postgresql&amp;nbsp; ?&lt;/P&gt;
&lt;P&gt;Also, pg_replication_sets I am looking for an option which will help me optimize my replication process.&lt;/P&gt;
&lt;P&gt;We are not replicating high transacting table but still replicate is reading that wal, I know we cant even skip that. But can you suggest me how I should tune my replication job .&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 14:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424155#M9827</guid>
      <dc:creator>gayatri235</dc:creator>
      <dc:date>2024-02-27T14:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424158#M9828</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/243606"&gt;@gayatri235&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I'm afraid the answer is No. These SQL do not work.&lt;/P&gt;
&lt;P&gt;If you want to know how Replicate creates slot and how to use it, you may set SOURCE_CAPTURE to Verbose, run the task again then check the task log file.&lt;/P&gt;
&lt;P&gt;Please take note that the slot will be created in the task first time run. If you want to get the slot creation SQL, please delete the slot manually then run the task again.&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 14:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424158#M9828</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-27T14:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424162#M9829</link>
      <description>&lt;P&gt;Thats ok, I am aware about the replicate slot creation process.&lt;/P&gt;
&lt;P&gt;Kindly help me with task settings that I can do to faster the wal/slot processing at replicate end&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 14:50:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424162#M9829</guid>
      <dc:creator>gayatri235</dc:creator>
      <dc:date>2024-02-27T14:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424177#M9830</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/243606"&gt;@gayatri235&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;When it comes to the&amp;nbsp;&lt;SPAN&gt;bottleneck, I think we may narrow down it by:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1- Use the &lt;A title="NULL target" href="https://community.qlik.com/t5/Official-Support-Articles/Null-File-Target/ta-p/1737871" target="_blank" rel="noopener"&gt;NULL target&lt;/A&gt; to run the task, if any latency&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2- If NO in step (1) then probably target side, or the network between Replicate server and target side database server is the&amp;nbsp;bottleneck.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3- If you are facing latency in step (1) then we need to tune the source PostgreSQL or the network between Replicate server and PostgreSQL.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If want to trace the whole path performance (with real source and target endpoints), please keep all other logging component to default (Information level) and keep PERFORMANCE to Trace, run the task again (keep it run at least 15 mins) then check the task log file to understand further. A typical output like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;2024-02-27T11:01:48 [PERFORMANCE ]T: Source latency &lt;EM&gt;281.39&lt;/EM&gt; seconds, Target latency &lt;EM&gt;2.03&lt;/EM&gt; seconds, Handling latency &lt;EM&gt;2.64&lt;/EM&gt; seconds (replicationtask.c:3734)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can see where is the bottleneck, source, target, or handling.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also please check &lt;A title="Latency / Performance Troubleshooting and Tuning for Replicate" href="https://community.qlik.com/t5/Official-Support-Articles/Latency-Performance-Troubleshooting-and-Tuning-for-Replicate/ta-p/1734097" target="_blank" rel="noopener"&gt;Latency / Performance Troubleshooting and Tuning for Replicate&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 15:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424177#M9830</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-27T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424179#M9831</link>
      <description>&lt;P&gt;So we tried replicating to NULL today, we didnt see latency issue today.&lt;/P&gt;
&lt;P&gt;But with Synapse there is latency when replication slot size grow.&lt;/P&gt;
&lt;P&gt;We checked at target end, there were no queries in queued state or taking more than seconds for execution everything seems to be normal at target.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 15:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2424179#M9831</guid>
      <dc:creator>gayatri235</dc:creator>
      <dc:date>2024-02-27T15:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2426278#M9961</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/243606"&gt;@gayatri235&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Looks to me the bottleneck is at network (between Replicate Server and Synapse) and/or Synapse side (eg if it swallows the data fast enough). And also if the compression is enabled in Replicate endpoint settings etc, anyway we need tuning according the hardware and software configurations. I suggest PS team help you.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Mar 2024 13:05:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2426278#M9961</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-03-03T13:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2426422#M9968</link>
      <description>&lt;P&gt;ok, how do I check the replicate and synapse network issue&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 07:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2426422#M9968</guid>
      <dc:creator>gayatri235</dc:creator>
      <dc:date>2024-03-04T07:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2426872#M9985</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/243606"&gt;@gayatri235&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;As John mentioned before, you can set PERFORMANCE logger to TRACE level. Then you can get latency information in the task log.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have identified whether the issue is source latency or target latency,&amp;nbsp;you can enable TRACLE pm corresponding loggers such as SOURCE_CAPTURE, TARGET_APPLY to get more information.&lt;BR /&gt;&lt;BR /&gt;Latency can be influenced by various factors including the CPU, memory capacity, I/O operations, network conditions, and database configuration etc. The specific impact of each factor can vary greatly. So, having professional team to analyze and optimize these factors can indeed be beneficial in reducing latency and improving system performance.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 03:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2426872#M9985</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-03-05T03:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replication slot for specific tables</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2430334#M10115</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/243606"&gt;@gayatri235&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you may use Postgres command which table using Wal files more.&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;A href="https://www.postgresql.org/docs/current/pgwaldump.html" target="_blank"&gt;PostgreSQL: Documentation: 16: pg_waldump&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's by design as wall file keeps info of changes made to the table's even if they are not participating in replication by Qlik itself.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Sushil Kumar&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 13:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Replication-slot-for-specific-tables/m-p/2430334#M10115</guid>
      <dc:creator>SushilKumar</dc:creator>
      <dc:date>2024-03-13T13:02:31Z</dc:date>
    </item>
  </channel>
</rss>

