<?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: tDBInput for each previous tDBInput row ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tDBInput-for-each-previous-tDBInput-row/m-p/2238765#M26771</link>
    <description>&lt;P&gt;Hi Phil,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You can follow that method also. But the only flip side with that approach is that you will be processing one record at a time in iterative fashion. So please do a performance test of the flow before moving it to production. If there are throughput issues, please create the flow as per my earlier post.&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>Fri, 26 Jul 2019 16:08:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-26T16:08:59Z</dc:date>
    <item>
      <title>tDBInput for each previous tDBInput row ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBInput-for-each-previous-tDBInput-row/m-p/2238762#M26768</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to fetch all users and the list of their orders (linked by a user_id field )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so the first tDBInput returns the users , but then how do I tell the second tDBInput the current user ID (..where user_id= some variable) ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how can I set variables/parameters to a sub query ? do I have to use sub Jobs ? iteration links ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can someone tell me how this is done ?&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:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBInput-for-each-previous-tDBInput-row/m-p/2238762#M26768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: tDBInput for each previous tDBInput row ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBInput-for-each-previous-tDBInput-row/m-p/2238763#M26769</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;The most robust way is to store the user ids to a temporary table and use inner join in second tDBInput to get only needed user ids. You can store the user ids to a context string variable and replace them in the IN clause of the query. But this approach is not scalable especially when the number of user ids go beyond 1000 in IN clause.&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>Mon, 22 Jul 2019 15:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBInput-for-each-previous-tDBInput-row/m-p/2238763#M26769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-22T15:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: tDBInput for each previous tDBInput row ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBInput-for-each-previous-tDBInput-row/m-p/2238764#M26770</link>
      <description>&lt;P&gt;actualy I did it with tFlowToIterate component&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 08:55:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBInput-for-each-previous-tDBInput-row/m-p/2238764#M26770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-26T08:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: tDBInput for each previous tDBInput row ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tDBInput-for-each-previous-tDBInput-row/m-p/2238765#M26771</link>
      <description>&lt;P&gt;Hi Phil,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You can follow that method also. But the only flip side with that approach is that you will be processing one record at a time in iterative fashion. So please do a performance test of the flow before moving it to production. If there are throughput issues, please create the flow as per my earlier post.&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>Fri, 26 Jul 2019 16:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tDBInput-for-each-previous-tDBInput-row/m-p/2238765#M26771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-26T16:08:59Z</dc:date>
    </item>
  </channel>
</rss>

