<?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: Execute process 100 by 100 to insert values in DB in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314571#M85322</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You guys are far too kind ty for response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i came up with was this i leave in attachment.&lt;/P&gt;&lt;P&gt;What i would like to know is how can i do that with a loop instead of multiple DB? The TRun JOB always call same subjob.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvvB"&gt;L_5097.tmp.PNG&lt;/A&gt;</description>
    <pubDate>Wed, 03 Jul 2019 16:34:37 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-03T16:34:37Z</dc:date>
    <item>
      <title>Execute process 100 by 100 to insert values in DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314568#M85319</link>
      <description>&lt;P&gt;Hello people,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I´m with some trouble in my design and development in a way to execute the process i leave in attachment.&lt;/P&gt; 
&lt;P&gt;So heres the thing, i have a table that contains 1000 rows with a flag so i can say how many of those i will migrate.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Problem:&lt;/P&gt; 
&lt;P&gt;How can i loop the process 100 by 100 with the flag beeing updated at start of each loop? So at the start, my process should update the first 100 rows ,and migrate information for the first 100 then should deativate the first 100 and go for the next 100 and migrate until reaches 700. how to do this ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;DB - SQL Server.&lt;/P&gt; 
&lt;P&gt;Talend version - last version.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:24:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314568#M85319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: Execute process 100 by 100 to insert values in DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314569#M85320</link>
      <description>I think you need a key or unique index in your table
&lt;BR /&gt;
&lt;BR /&gt;You first select records where unique_column between start and start+100
&lt;BR /&gt;
&lt;BR /&gt;Then you update your flag and do all your processing
&lt;BR /&gt;
&lt;BR /&gt;To update a table : tDBOutput, then you choose the option "UPDATE"
&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2019 17:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314569#M85320</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T17:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Execute process 100 by 100 to insert values in DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314570#M85321</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Usage of the primary key (if its not present, a unique index) is the best way to update records when you are processing the records in loops.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;But the flip side of the loop is that it will take more time to process since the data will be taken as batches. So the batch size will be a crucial element to optimize the flow throughput. I would recommend to increase the batch size as much as possible to reduce the number of iterations (which means less processing time).&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 18:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314570#M85321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-02T18:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Execute process 100 by 100 to insert values in DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314571#M85322</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You guys are far too kind ty for response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What i came up with was this i leave in attachment.&lt;/P&gt;&lt;P&gt;What i would like to know is how can i do that with a loop instead of multiple DB? The TRun JOB always call same subjob.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvvB"&gt;L_5097.tmp.PNG&lt;/A&gt;</description>
      <pubDate>Wed, 03 Jul 2019 16:34:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314571#M85322</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-03T16:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Execute process 100 by 100 to insert values in DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314572#M85323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; Lets go back to the basics. Could you please share the rationale for doing this process as multiple batches instead of a single batch?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If you increase the memory of the job, you should be able to do the same process as a single batch right?&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, 04 Jul 2019 14:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Execute-process-100-by-100-to-insert-values-in-DB/m-p/2314572#M85323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-04T14:43:25Z</dc:date>
    </item>
  </channel>
</rss>

