<?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: tMap reload at each row (cache) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271413#M49019</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yeah, I think on this solution too. The problem in this one is that I will need to read all data inside file 2 times, one to load the thashoutput and the other to do what I'm doing. Do you know another solution to avoid this 2 times read?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Luiz Ramos&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2020 15:01:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-27T15:01:08Z</dc:date>
    <item>
      <title>tMap reload at each row (cache)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271411#M49017</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have one doubt...&lt;/P&gt; 
&lt;P&gt;I'm using the tFileInputMSDelimited and two tMaps in my job (for now). In the tMap lookup settings, I have a get_dates component that will retrieve the dates from database. To a better performance of my job the tMap lookup settings is with the option "Reload at each row (cache)" enabled, to avoid call the select statement in database more than one time for the same date. The question is that I'm using the same get_dates component in two different tMaps, so all the dates that was saved to the cache in the first tMap will be available for the second too? Or it create a cache for each tMap?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 410px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9aF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138172i9ECB5D5C002B01F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9aF.png" alt="0683p000009M9aF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271411#M49017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T02:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: tMap reload at each row (cache)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271412#M49018</link>
      <description>&lt;P&gt;I'm afraid cache are separated for each tMap.&lt;/P&gt;&lt;P&gt;Maybe you should to query the dates once and store the result into a tHashOutput and replace existing tDBInput for this table by a tHashInput.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 14:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271412#M49018</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-03-27T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: tMap reload at each row (cache)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271413#M49019</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Yeah, I think on this solution too. The problem in this one is that I will need to read all data inside file 2 times, one to load the thashoutput and the other to do what I'm doing. Do you know another solution to avoid this 2 times read?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Luiz Ramos&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 15:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271413#M49019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-27T15:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: tMap reload at each row (cache)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271414#M49020</link>
      <description>Rows pushed into tHashOutput are in memory, not into a file. How many rows do you expect in the dates table?</description>
      <pubDate>Fri, 27 Mar 2020 15:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271414#M49020</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-03-27T15:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: tMap reload at each row (cache)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271415#M49021</link>
      <description>&lt;P&gt;Yeah, I know.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What I'm saying is that I will need to read the data from the original file 2 times, one first to populate the thashoutput and the second to do what my job is doing. Follow an image from what I think I need to do if I use thashoutput:&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="Capture.PNG" style="width: 542px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9PD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136066i76F726AA1D6A5E6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9PD.png" alt="0683p000009M9PD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Luiz Ramos&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 15:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271415#M49021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-27T15:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: tMap reload at each row (cache)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271416#M49022</link>
      <description>&lt;P&gt;Should be like this, no?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap.png" style="width: 567px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9aP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147128iFA0E9C1042408653/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9aP.png" alt="0683p000009M9aP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 15:52:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271416#M49022</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2020-03-27T15:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: tMap reload at each row (cache)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271417#M49023</link>
      <description>&lt;P&gt;Ahhhh ok, sorry for that, let me share the scenario.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm using the get_dates as an example, but I want to perform the same action in all other lookup from the first image. The date table has 10000 records right now (this will grow up). But the other lookups will have more than 1 million of records. So what I don't want to do is get all records from each table and insert in thashoutput, because will crash the memory. What I think to do is to populate the thashoutput only with records that exist in the file that I'm reading, to avoid this memory crash. But for this, I think I need to do what I show in the second image.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For example, if I have 10000 records in date table, but my file has only 2 different dates, I only want to store in thashoutput these 2, and not all 10000.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Getting this same example, I have another question. One way to avoid all the workaround in our last posts, is to delete the second tMap and find a way to send the 2 different output from the original file to the same tMap. With this, I don't need to use the second tMap and the "Reload at each row (cache)" will work successfully. However, the 2 outputs have different schemas, and I know that Talend doesn't support "circle execution flow". Follow below an image of my entire job:&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="Capture.PNG" style="width: 847px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9B2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154333i07DD77DAB6D0BD3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9B2.png" alt="0683p000009M9B2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Do you have any suggestion for that?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Luiz Ramos&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 16:15:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-reload-at-each-row-cache/m-p/2271417#M49023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-27T16:15:48Z</dc:date>
    </item>
  </channel>
</rss>

