<?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: Multithread, iterate and tFlowIterate in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236200#M24992</link>
    <description>&lt;P&gt;The tJava does some simple log, no biggies &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So if I understand well I&lt;/P&gt; 
&lt;P&gt;- keep the iterate with parallel execution enabled&lt;/P&gt; 
&lt;P&gt;- use the globalMap values JUST to populate subjob context Parameters&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Should I check the "use an independent process to run subjob" too?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Many thanks for your help&lt;/P&gt; 
&lt;P&gt;Alessandro&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Sep 2019 13:26:14 GMT</pubDate>
    <dc:creator>aagustoni</dc:creator>
    <dc:date>2019-09-10T13:26:14Z</dc:date>
    <item>
      <title>Multithread, iterate and tFlowIterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236198#M24990</link>
      <description>&lt;P&gt;Hello&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using Talend TOS (V7), I don't have access to Enterprise version, unluckily&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a job with the following design (see the attached screenshot)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;First a query that select among the other info, n couples colorID/sizeID&lt;/P&gt; 
&lt;P&gt;Then a tFlowToIterate to make colorID and sizeID available in an iteration&lt;/P&gt; 
&lt;P&gt;On component OK the colorID/sizeID are used as filters to retrieve the data from an Oracle Table&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The job works fine, but when the number of colorId/SizeId are many, it is quite slow to complete.&lt;/P&gt; 
&lt;P&gt;I have tried enabling iterate parallel parameters and things run much better (the execution time halves, of course).&lt;/P&gt; 
&lt;P&gt;The problem is that reading the documentation I have found that globalMap is not thread safe so I feel there are risks in making my design multithread (a mix up of colorIds or sizeIds during the executions would cause serious problems)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to modify my design in order to make it thread safe?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your help&lt;/P&gt; 
&lt;P&gt;Alessandro&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Basicall&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236198#M24990</guid>
      <dc:creator>aagustoni</dc:creator>
      <dc:date>2024-11-16T04:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Multithread, iterate and tFlowIterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236199#M24991</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 283px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M7Fx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144942i5C4E0497248894F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M7Fx.png" alt="0683p000009M7Fx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;yes, you may iterate to trunjob using context value in place of global.&lt;BR /&gt;with that configuration thread have there own variables.&lt;/P&gt; 
&lt;P&gt;be careful tjava is not explicite so we do not know what is the objectif of your job. not easy for maintenance.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 13:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236199#M24991</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-10T13:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multithread, iterate and tFlowIterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236200#M24992</link>
      <description>&lt;P&gt;The tJava does some simple log, no biggies &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So if I understand well I&lt;/P&gt; 
&lt;P&gt;- keep the iterate with parallel execution enabled&lt;/P&gt; 
&lt;P&gt;- use the globalMap values JUST to populate subjob context Parameters&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Should I check the "use an independent process to run subjob" too?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Many thanks for your help&lt;/P&gt; 
&lt;P&gt;Alessandro&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 13:26:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236200#M24992</guid>
      <dc:creator>aagustoni</dc:creator>
      <dc:date>2019-09-10T13:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multithread, iterate and tFlowIterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236201#M24993</link>
      <description>please to help.&lt;BR /&gt;validate the solution on your side and check as solved.&lt;BR /&gt;By</description>
      <pubDate>Tue, 10 Sep 2019 13:52:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236201#M24993</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-10T13:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multithread, iterate and tFlowIterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236202#M24994</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I will for sure, as soon as I tested...&lt;/P&gt;&lt;P&gt;Just a detail :&lt;STRONG&gt; Should I check the "use an independent process to run subjob" too or the check in the iterate flow is enough?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2019 13:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236202#M24994</guid>
      <dc:creator>aagustoni</dc:creator>
      <dc:date>2019-09-10T13:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Multithread, iterate and tFlowIterate</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236203#M24995</link>
      <description>yes check it then you will have independent java thread.</description>
      <pubDate>Tue, 10 Sep 2019 14:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multithread-iterate-and-tFlowIterate/m-p/2236203#M24995</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-09-10T14:02:43Z</dc:date>
    </item>
  </channel>
</rss>

