<?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: Move the stored procedure logic to Talend having Loop with multiple SQL lines in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Move-the-stored-procedure-logic-to-Talend-having-Loop-with/m-p/2212063#M9838</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; You can definitely rewrite the entire logic in Talend. But I am thinking in different direction also. If you have to rewrite the entire query and do all the aggregation functions in Talend, it means that you will have to provide the entire data from underlying tables to Talend. Right now, you must be getting the aggregated records only to next stage.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If the base tables have lot of records (say in 100,000s of rows), it means you will need more memory in Talend to store and process all those records and there will be extra network latency and resource usage to transfer those many records between DB server and Talend job server.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; May be you can do each stage of aggregation queries directly within DB and then pick the result sets to Talend. That way, you will have best of both worlds. You can get rid of stored procedure and at the same time, utilize the DB computation power for aggregation. Once the aggregated data from different steps of stored procedure are ready, then you can join them using tMap and load to target tables.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&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;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2019 05:46:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-22T05:46:39Z</dc:date>
    <item>
      <title>Move the stored procedure logic to Talend having Loop with multiple SQL lines</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Move-the-stored-procedure-logic-to-Talend-having-Loop-with/m-p/2212060#M9835</link>
      <description>&lt;P&gt;Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have attached stored procedure which need to migrate in Talend. I was wondering how can I loop through mulitple line of SQL codes with subquery and group by and sum operation. So, basically it's summary table population with Loop through calcuation based on Year, Period on YTD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please suggest the approach to convert this in Talend.&lt;/P&gt;&lt;P&gt;It will be great help for me and&amp;nbsp;I am using TOS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Move-the-stored-procedure-logic-to-Talend-having-Loop-with/m-p/2212060#M9835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Move the stored procedure logic to Talend having Loop with multiple SQL lines</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Move-the-stored-procedure-logic-to-Talend-having-Loop-with/m-p/2212061#M9836</link>
      <description>&lt;P&gt;Hi Rohit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; While it is obviously possible in Talend, why don't you just call the STored proc from Talend using tDBRow component?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I was thinking why to spend time to reinvent the wheel since you already have full logic in Stored procedure itself.&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;/P&gt;</description>
      <pubDate>Mon, 21 Oct 2019 15:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Move-the-stored-procedure-logic-to-Talend-having-Loop-with/m-p/2212061#M9836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-21T15:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Move the stored procedure logic to Talend having Loop with multiple SQL lines</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Move-the-stored-procedure-logic-to-Talend-having-Loop-with/m-p/2212062#M9837</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;Thanks for the response. We are actually migrating the Stored procedure in Talend and also we need to improve the performace so, I think calling directly in Talend is going to provide same processing speed as before however, if we convert in Talend logic then it might help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please suggest your thought on the same.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 03:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Move-the-stored-procedure-logic-to-Talend-having-Loop-with/m-p/2212062#M9837</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-22T03:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Move the stored procedure logic to Talend having Loop with multiple SQL lines</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Move-the-stored-procedure-logic-to-Talend-having-Loop-with/m-p/2212063#M9838</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; You can definitely rewrite the entire logic in Talend. But I am thinking in different direction also. If you have to rewrite the entire query and do all the aggregation functions in Talend, it means that you will have to provide the entire data from underlying tables to Talend. Right now, you must be getting the aggregated records only to next stage.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; If the base tables have lot of records (say in 100,000s of rows), it means you will need more memory in Talend to store and process all those records and there will be extra network latency and resource usage to transfer those many records between DB server and Talend job server.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; May be you can do each stage of aggregation queries directly within DB and then pick the result sets to Talend. That way, you will have best of both worlds. You can get rid of stored procedure and at the same time, utilize the DB computation power for aggregation. Once the aggregated data from different steps of stored procedure are ready, then you can join them using tMap and load to target tables.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&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;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 05:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Move-the-stored-procedure-logic-to-Talend-having-Loop-with/m-p/2212063#M9838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-22T05:46:39Z</dc:date>
    </item>
  </channel>
</rss>

