<?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: PostgreSQL instant query gets slow in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264121#M44071</link>
    <description>&lt;P&gt;we have many jobs done on 6.4/6.5 with PostgreSQL, not similar issues was detected&lt;BR /&gt;&lt;BR /&gt;so, need more information about architecture and job design&lt;/P&gt;</description>
    <pubDate>Fri, 15 Feb 2019 05:23:58 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2019-02-15T05:23:58Z</dc:date>
    <item>
      <title>PostgreSQL instant query gets slow in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264119#M44069</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am working with a PostgreSQL database, TOS 6.5.1 and struggling with a minor error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a fairly simple query that deletes some rows (usually 0) in case of date conflict.&lt;/P&gt;
&lt;P&gt;I noticed the query was taking way too much time and realized that the query is pretty much instantaneous (&amp;lt;1s) in psql or pgAdmin but will take somewhere between 20 minutes and 2 hours to complete in Talend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It was first used as a function in a tPostgreSQLrow (select * from schema.function) then in a second time using only the query as-is.&lt;/P&gt;
&lt;P&gt;I tested a lot using the exact same query, both in Talend and pgAdmin and the time difference remained.&lt;/P&gt;
&lt;P&gt;I tried to use a tPostgresSQLconnection instead of built-in with the same result and I'm running out of ideas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something wrong with the jdbc connection or am I doing something wrong ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Damien&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 11:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264119#M44069</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-14T11:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL instant query gets slow in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264120#M44070</link>
      <description>&lt;P&gt;Hi Damien,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Could you please try the same query in 7.1 version of Studio? There are upgrades in version 7 of Talend and it may give better performance. You can check the same with Open source version of Talend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 11:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264120#M44070</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-14T11:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL instant query gets slow in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264121#M44071</link>
      <description>&lt;P&gt;we have many jobs done on 6.4/6.5 with PostgreSQL, not similar issues was detected&lt;BR /&gt;&lt;BR /&gt;so, need more information about architecture and job design&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 05:23:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264121#M44071</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-15T05:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL instant query gets slow in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264122#M44072</link>
      <description>&lt;P&gt;Hi Nikhil,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank your for your answer, since we recently upgraded to Talend 6.5, it might be difficult to justify another upgrade so soon.&lt;/P&gt;
&lt;P&gt;Nonetheless, I'll try to install the latest version to test if I manage to save some time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Damien&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 08:27:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264122#M44072</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-19T08:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL instant query gets slow in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264123#M44073</link>
      <description>&lt;P&gt;Hi Vapukov,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It surprises me too since we have a lot of jobs on PostgreSQL and none display this behavior.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To give you more information, I attached a picture of the job to this message, circled the one with the issue.&lt;/P&gt; 
&lt;P&gt;I have some homemade logs used with tRunJob that allows me to know the duration of each step.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The component in question is a tPostgresqlRow with the following query :&lt;/P&gt; 
&lt;P&gt;"DELETE FROM " + context.EPE_CNT_SCHEMA + ".qc1_epe_wtb_hist_3&lt;BR /&gt;WHERE ctid IN (SELECT DISTINCT (CASE WHEN t1.dat_start = t1.dat_end THEN t1.ctid&lt;BR /&gt;WHEN t2.dat_start = t2.dat_end THEN t2.ctid END) AS ctid&lt;BR /&gt;FROM " + context.EPE_CNT_SCHEMA + ".qc1_epe_wtb_hist_3 t1&lt;BR /&gt;, " + context.EPE_CNT_SCHEMA + ".qc1_epe_wtb_hist_3 t2&lt;BR /&gt;WHERE t1.key_item = t2.key_item&lt;BR /&gt;AND t1.dat_start = t2.dat_end&lt;BR /&gt;AND ( t1.dat_start = t1.dat_end OR t2.dat_start = t2.dat_end )&lt;BR /&gt;AND t1.ctid &amp;lt;&amp;gt; t2.ctid);"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;With "context.EPE_CNT_SCHEMA" allowing me to change the schema depending on my configuration.&lt;/P&gt; 
&lt;P&gt;The query runs under a second in pgAdmin or psql but goes on and on if I call it with this component.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Do you need me to provide more details ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards,&lt;BR /&gt;Damien&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuoN"&gt;job.JPG&lt;/A&gt;</description>
      <pubDate>Tue, 19 Feb 2019 08:37:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264123#M44073</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-19T08:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: PostgreSQL instant query gets slow in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264124#M44074</link>
      <description>&lt;P&gt;any update on this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 02:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/PostgreSQL-instant-query-gets-slow-in-Talend/m-p/2264124#M44074</guid>
      <dc:creator>Rahul_Lohar</dc:creator>
      <dc:date>2020-09-07T02:49:56Z</dc:date>
    </item>
  </channel>
</rss>

