<?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: Optimize Tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211354#M9408</link>
    <description>&lt;P&gt;Did you try to change the paradigme of the tMap lookup model?&lt;/P&gt; 
&lt;P&gt;If your big table has a primary key (or and indexed column) and you got it in the text file data, you may try to change to "Reload at each row (cache)" model. After having changed the model, click the green plus sign on the lookup table, set the "globalMap Key" with a name of your choice then drag and drop the corresponding field from the main table (text file date).&lt;/P&gt; 
&lt;P&gt;It should look like this:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMSpos.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M961.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148327i8D3E7DADE159E44A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M961.png" alt="0683p000009M961.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;If you still have memory issues or the job take too long to run because of the number of queries it will generate, you may try to generate a dynamic IN clause with unique values issued from your text file data (something like "1,12,45,32,60,...").&amp;nbsp;The values will be stored into a global variable (use a tJavaFlex component to construct this variable).&lt;/P&gt; 
&lt;P&gt;Then on a separate subjob you will be able to query the big table to get only the required records with a SELECT statement looking like this:&lt;/P&gt; 
&lt;PRE&gt;"SELECT blablabla &lt;BR /&gt;   FROM yourBigTable
  WHERE yourKeyField IN (" + ((String)globalMap.get("yourVariable")) + ")"&lt;/PRE&gt;</description>
    <pubDate>Sun, 23 Feb 2020 15:21:50 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2020-02-23T15:21:50Z</dc:date>
    <item>
      <title>Optimize Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211353#M9407</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Looking for suggestions on my bottleneck within my transformation steps.&amp;nbsp; I attached an image of my design.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The arrow points to the bottleneck input that has about 100mill records coming out of the SQL query.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm selecting Load Once against this SQL query.&lt;/P&gt; 
&lt;P&gt;The input text file data has only 168k rows coming in.&lt;/P&gt; 
&lt;P&gt;I have my JVM arguments set at -Xms8G and -Xmx16G.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="etl_bottleneck.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8y2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128497i39D0B60954A85474/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8y2.png" alt="0683p000009M8y2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Suggestions on how to avoid the GC memory overhead error and optimize this job?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please and thank you!!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 21:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211353#M9407</guid>
      <dc:creator>rwnetwork</dc:creator>
      <dc:date>2020-02-21T21:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211354#M9408</link>
      <description>&lt;P&gt;Did you try to change the paradigme of the tMap lookup model?&lt;/P&gt; 
&lt;P&gt;If your big table has a primary key (or and indexed column) and you got it in the text file data, you may try to change to "Reload at each row (cache)" model. After having changed the model, click the green plus sign on the lookup table, set the "globalMap Key" with a name of your choice then drag and drop the corresponding field from the main table (text file date).&lt;/P&gt; 
&lt;P&gt;It should look like this:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMSpos.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M961.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148327i8D3E7DADE159E44A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M961.png" alt="0683p000009M961.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;If you still have memory issues or the job take too long to run because of the number of queries it will generate, you may try to generate a dynamic IN clause with unique values issued from your text file data (something like "1,12,45,32,60,...").&amp;nbsp;The values will be stored into a global variable (use a tJavaFlex component to construct this variable).&lt;/P&gt; 
&lt;P&gt;Then on a separate subjob you will be able to query the big table to get only the required records with a SELECT statement looking like this:&lt;/P&gt; 
&lt;PRE&gt;"SELECT blablabla &lt;BR /&gt;   FROM yourBigTable
  WHERE yourKeyField IN (" + ((String)globalMap.get("yourVariable")) + ")"&lt;/PRE&gt;</description>
      <pubDate>Sun, 23 Feb 2020 15:21:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211354#M9408</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-02-23T15:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211355#M9409</link>
      <description>&lt;P&gt;Thank you TRF for your response.&lt;/P&gt; 
&lt;P&gt;I did attempt some mods to the paradigm of the tmap, but have not tried the cache option yet.&lt;/P&gt; 
&lt;P&gt;Let me take your suggestions and see if I can implement them.&amp;nbsp; Will advise on my progress.&lt;/P&gt; 
&lt;P&gt;Thanks again!&lt;/P&gt; 
&lt;P&gt;Michelle&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAqE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135904iF8EAA2E88827FAD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAqE.png" alt="0683p000009MAqE.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 15:29:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211355#M9409</guid>
      <dc:creator>rwnetwork</dc:creator>
      <dc:date>2020-02-24T15:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211356#M9410</link>
      <description>&lt;P&gt;Hi TRF,&lt;/P&gt;
&lt;P&gt;I'm running my process with a modification of the tmap doing a Reload at each row (cache), however it's sitting there processing and I feel like it's going to be the same processing time without this change.&lt;/P&gt;
&lt;P&gt;Therefore, I would like to attempt your 2nd suggestion of generating a dynamic IN clause, which I envision working, but I have a few questions please:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; Where do I generate the 'IN clause' from my text file?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; And the tjavaflex component will store these 'IN clause' unique variables, correct?&lt;/P&gt;
&lt;P&gt;3.&amp;nbsp; Then I would create a subjub using tas400input to query the Select statement from the tjavaflex into the tmap I already have created?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your help!&lt;/P&gt;
&lt;P&gt;Michelle&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>Mon, 24 Feb 2020 20:52:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211356#M9410</guid>
      <dc:creator>rwnetwork</dc:creator>
      <dc:date>2020-02-24T20:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211357#M9411</link>
      <description>&lt;P&gt;Hi Michelle,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Having an "IN" clause could be a solution if you are sure the query length limit for your RDBMS will not be reached.&lt;/P&gt;
&lt;P&gt;Place a tUniqRow after your data source component then a tJavaFlex in which you will:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;initialize a global variable (let's say InClause) with the starting "(" in the start part&lt;/LI&gt;
 &lt;LI&gt;add current value (maybe enclosed by '') and a comma to InClause in the main part&lt;/LI&gt;
 &lt;LI&gt;remove the extra comma from InClause and add ")" in the final part&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;On the next subjob you will be able to reuse this variable in your WHERE clause:&lt;/P&gt;
&lt;PRE&gt;"SELECT blablabla
WHERE blablabla
AND yourColumn IN " + (String)globalMap.get("InClause")&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Feb 2020 07:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211357#M9411</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-02-27T07:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211358#M9412</link>
      <description>&lt;P&gt;Thanks TRF very much.&lt;/P&gt;&lt;P&gt;Let me give this a whirl and will advise.&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 14:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211358#M9412</guid>
      <dc:creator>rwnetwork</dc:creator>
      <dc:date>2020-02-27T14:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211359#M9413</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt; 
&lt;P&gt;After attempting, I realized I haven't done many of these things yet in Talend, would you be so kind to to help clarify a few things?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-02-27_0842.png" style="width: 835px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9CD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138776i52F042EBF209ECC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9CD.png" alt="0683p000009M9CD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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, 27 Feb 2020 14:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211359#M9413</guid>
      <dc:creator>rwnetwork</dc:creator>
      <dc:date>2020-02-27T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211360#M9414</link>
      <description>&lt;P&gt;Feel free to reuse this example:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tjavaflex.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8no.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148198i0B0D438846616EC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8no.png" alt="0683p000009M8no.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 15:00:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211360#M9414</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-02-27T15:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211361#M9415</link>
      <description>&lt;P&gt;Oh thank you very much for an example!&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MI8z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149143iC618A0D4F1AB4C8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MI8z.png" alt="0683p000009MI8z.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;Will advise on solution.&lt;/P&gt; 
&lt;P&gt;Michelle&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 15:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Optimize-Tmap/m-p/2211361#M9415</guid>
      <dc:creator>rwnetwork</dc:creator>
      <dc:date>2020-02-27T15:12:39Z</dc:date>
    </item>
  </channel>
</rss>

