<?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: How to Processing the rows in batch in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307979#M79366</link>
    <description>Hi Nikhil,
&lt;BR /&gt;current job is like read all the files and then run another job(trunJob) for transformation. According to your solution,
&lt;BR /&gt;tSQLInput-&amp;gt;tflowToIterate-&amp;gt; trunjob
&lt;BR /&gt;
&lt;BR /&gt;but in this flow how can I define the condition like 500 files in one go?
&lt;BR /&gt;My question is for 500 files, trunjob should run once and for next 500 files it has to run again.
&lt;BR /&gt;
&lt;BR /&gt;Thank You,
&lt;BR /&gt;Sonali Jagtap</description>
    <pubDate>Thu, 16 Aug 2018 13:52:00 GMT</pubDate>
    <dc:creator>sonalijagtap</dc:creator>
    <dc:date>2018-08-16T13:52:00Z</dc:date>
    <item>
      <title>How to Processing the rows in batch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307977#M79364</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a requirement like around 2000 file names are stored in the MSSQL table. I want to read those files in batches like 500 rows and then process those files. After completion of that job, again pick the next 500 files and follow the same process till the last file.&lt;/P&gt;
&lt;P&gt;How to achieve the same?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You in Advance,&lt;/P&gt;
&lt;P&gt;Sonali&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 12:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307977#M79364</guid>
      <dc:creator>sonalijagtap</dc:creator>
      <dc:date>2018-08-16T12:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to Processing the rows in batch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307978#M79365</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You cannot take the data&amp;nbsp;and split them as&amp;nbsp;batches directly using Talend components. You would have to employ custom components in between to process them as multiple batches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The ideal way to process will be to do a single read from MSSQL database to fetch all the 2000 records in one go and add a tflowtoiterate component to process these files one after another. It will make sure that all your files are processed and at the same time you are doing a single database fetch instead of multiple calls.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; But if you would like to process 500 records in parallel, then it will become complex use case for a standard job&amp;nbsp; where you will have to employ tparallelize and other custom code components.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;A better idea will be to merge all the files (assuming the schema are same) and process using Bigdata Spark jobs which will be quite fast.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I assume your use case is simple. So try with option 1 and if its taking time, go for Bigdata job options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please mark the topic as resolved if the answer has helped you. Kudos are also welcome &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;Warm Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nikhil Thampi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 13:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307978#M79365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-16T13:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Processing the rows in batch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307979#M79366</link>
      <description>Hi Nikhil,
&lt;BR /&gt;current job is like read all the files and then run another job(trunJob) for transformation. According to your solution,
&lt;BR /&gt;tSQLInput-&amp;gt;tflowToIterate-&amp;gt; trunjob
&lt;BR /&gt;
&lt;BR /&gt;but in this flow how can I define the condition like 500 files in one go?
&lt;BR /&gt;My question is for 500 files, trunjob should run once and for next 500 files it has to run again.
&lt;BR /&gt;
&lt;BR /&gt;Thank You,
&lt;BR /&gt;Sonali Jagtap</description>
      <pubDate>Thu, 16 Aug 2018 13:52:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307979#M79366</guid>
      <dc:creator>sonalijagtap</dc:creator>
      <dc:date>2018-08-16T13:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Processing the rows in batch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307980#M79367</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;We can create the job on parent &amp;amp; child basis:&lt;/P&gt; 
&lt;P&gt;Parent job: In this we can store the context variable value. In this the tweak is we have initially created one file and store the context variable value as "0".&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parent.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz3s.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131530i6ED732F9AEF7637A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz3s.jpg" alt="0683p000009Lz3s.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Child job: In this, we can increment the value and on the basis of that we can filter the data. like in your case the job will fetch first 500 records and on next run it will take next 500 records.&lt;/P&gt; 
&lt;P&gt;At the end of the child job we are storing the seq1(in this example is 2) which is working as the context variable value for the next time.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="child.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzZc.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151098iD8BFA440C6FF67AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzZc.jpg" alt="0683p000009LzZc.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="In my example I had took the sequence of 2" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzRP.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136214i8CE06E8EE970F0FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzRP.jpg" alt="0683p000009LzRP.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;In my example I had took the sequence of 2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Output will be:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="First run" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzZh.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139103i6147F6F2CD64256E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzZh.jpg" alt="0683p000009LzZh.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;First run&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="second run" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzQc.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148987i136648F34E91F3B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzQc.jpg" alt="0683p000009LzQc.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;second run&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Please let me know if you need more clarification.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;Akash&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 20:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307980#M79367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-18T20:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Processing the rows in batch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307981#M79368</link>
      <description>&lt;P&gt;It worked for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You so much Akash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 12:29:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307981#M79368</guid>
      <dc:creator>sonalijagtap</dc:creator>
      <dc:date>2018-08-21T12:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to Processing the rows in batch</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307982#M79369</link>
      <description>&lt;P&gt;Hi sonali,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering the same, Can you please explain how you done this &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fazil&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 04:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-Processing-the-rows-in-batch/m-p/2307982#M79369</guid>
      <dc:creator>MdFazil</dc:creator>
      <dc:date>2023-10-18T04:37:15Z</dc:date>
    </item>
  </channel>
</rss>

