<?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: Insert/Update versus table-file-table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259040#M40647</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;30 minutes to insert/update only 100 records seems very&amp;nbsp;long.&lt;/P&gt;
&lt;P&gt;Do you know&amp;nbsp;elapsed time for each task?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How long for the tMSSqlInput, tMSSqlRow and tMysqlOutput?&lt;/P&gt;
&lt;P&gt;What appens in&amp;nbsp;&lt;SPAN&gt;tMSSqlRow?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2017 08:35:22 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-06-07T08:35:22Z</dc:date>
    <item>
      <title>Insert/Update versus table-file-table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259039#M40646</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have been using insert/update to update or insert a table in mysql from sql server. The job is set up as a cronjob. The job runs every 8 hours. The number of records in the source table is around 400000. Every 8 hours around 100 records might get updated or inserted.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I run the job in such a away that at the source level, I only take the modified runs between the last run and the current run.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have observed that just to update / insert 100 rows the time taken is 30 minutes.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;However, another way was to dump all of the 400000 in a file and then truncate the destination table and insert all of those records all over again. This process is done at every job run&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So, now may I know why does insert/update take so much time?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The job design for insert/update is &amp;nbsp;as follows&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 601px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuaZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150663iD9ECD9356BFD6A8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuaZ.png" alt="0683p000009LuaZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Thanks in advance&lt;/P&gt; 
&lt;P&gt;Rathi&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 08:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259039#M40646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T08:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Insert/Update versus table-file-table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259040#M40647</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;30 minutes to insert/update only 100 records seems very&amp;nbsp;long.&lt;/P&gt;
&lt;P&gt;Do you know&amp;nbsp;elapsed time for each task?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How long for the tMSSqlInput, tMSSqlRow and tMysqlOutput?&lt;/P&gt;
&lt;P&gt;What appens in&amp;nbsp;&lt;SPAN&gt;tMSSqlRow?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 08:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259040#M40647</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-07T08:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Insert/Update versus table-file-table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259041#M40648</link>
      <description>&lt;P&gt;Ahh, I do not know the elapsed time for each component.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The tmmsqlrow updates the time in a table about the end of time of the job&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rathi&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 08:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259041#M40648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T08:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Insert/Update versus table-file-table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259042#M40649</link>
      <description>&lt;P&gt;Hi TRF,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there any other kind of statistics that I need to gather to help explain the problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rathi&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 09:09:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259042#M40649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T09:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Insert/Update versus table-file-table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259043#M40650</link>
      <description>&lt;P&gt;As you have a tStatCatcher subjob, just check the option "tStatCatcher statistics" on Advanced settings for all critical components.&lt;/P&gt;&lt;P&gt;If possible, compare the elapsed time when doing operations outside of Talend.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 09:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259043#M40650</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-06-07T09:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Insert/Update versus table-file-table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259044#M40651</link>
      <description>&lt;P&gt;Possible reasons for this (given what you have said) are....&lt;/P&gt; 
&lt;P&gt;1) You are not updating on a primary key or an indexed key. Do you have any indexes on your insert table? You may only update/insert 100 records but you say you are&amp;nbsp;actually processing 400000 records. That is potentially n(number of records in your source table) x 400000 comparisons (possibly full table scans).&lt;BR /&gt;2) Do you have insert/update triggers on your insert table? These will add some latency.....but I wouldn't expect this to be your cause if I am honest.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2017 09:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-Update-versus-table-file-table/m-p/2259044#M40651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-07T09:25:32Z</dc:date>
    </item>
  </channel>
</rss>

