<?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>article Loop Statement in Qlik Compose, tasks take longer than expected to load data in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Loop-Statement-in-Qlik-Compose-tasks-take-longer-than-expected/ta-p/2437310</link>
    <description>&lt;P&gt;Qlik Compose logs statements such as:&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;2024-03-11 18:38:24.056 [engine ] [INFO ] [] PI# 36 RUN : &lt;STRONG&gt;Adding staging rows&lt;/STRONG&gt; to TSTG_E2LIS_02_ITM_P&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;18:38:30.431 [engine ] [INFO ] [] PI# 39 RUN : &lt;STRONG&gt;Loop Back Point.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;pool-2-thread-3 2024-03-11 18:38:30.431 [engine ] [INFO ] [] &lt;STRONG&gt;Loop on&lt;/STRONG&gt; 35,36,37,38&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Loop Statements run in an iteration manner, which can lead to performance issues and tasks taking longer to load data.&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Compose runs the process step (Adding staging rows to TSTG_E2LIS_02_ITM_P) in an iteration manner when any of the columns are not mapped. Either we have to map this column or define an expression for this column and regenerate the statements. Hence the process step will not be in the loop.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In the below example (Job E01 Initialization Map_2LIS_02_ITM) some of the columns are &lt;STRONG&gt;not mapped&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manage data warehouse tasks Initialization.png" style="width: 667px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163638i949933DB06A64BC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="manage data warehouse tasks Initialization.png" alt="manage data warehouse tasks Initialization.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unmapped columns.png" style="width: 963px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163639i18EA7FB827C0089F/image-size/large?v=v2&amp;amp;px=999" role="button" title="unmapped columns.png" alt="unmapped columns.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;In the &lt;STRONG&gt;Task Statements&lt;/STRONG&gt;, we see the &lt;STRONG&gt;Loop Statements&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="task statements and loop statements.png" style="width: 549px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163640i74B33E688427F0E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="task statements and loop statements.png" alt="task statements and loop statements.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Once the columns are&amp;nbsp;&lt;STRONG&gt;mapped&amp;nbsp;&lt;/STRONG&gt;and the task statements&amp;nbsp;&lt;STRONG&gt;regenerated&lt;/STRONG&gt;, the loop statements are removed&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mapping columns.png" style="width: 854px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163641iDAB9967EFCF86666/image-size/large?v=v2&amp;amp;px=999" role="button" title="mapping columns.png" alt="mapping columns.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="no more loop statements.png" style="width: 856px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163642i0F6AE8D2A8FC61DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="no more loop statements.png" alt="no more loop statements.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;After mapping the missed columns, the task can be able to load the data faster.&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;Compose runs the process step (Adding staging rows to TSTG_E2LIS_02_ITM_P) in an iteration manner when any of the columns are not mapped.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID(s)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&gt;QB-21468&lt;BR /&gt;QB-25783&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5" color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Compose" id="qlikcompose"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Mon, 08 Apr 2024 07:53:29 GMT</pubDate>
    <dc:creator>sureshkumar</dc:creator>
    <dc:date>2024-04-08T07:53:29Z</dc:date>
    <item>
      <title>Loop Statement in Qlik Compose, tasks take longer than expected to load data</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Loop-Statement-in-Qlik-Compose-tasks-take-longer-than-expected/ta-p/2437310</link>
      <description>&lt;P&gt;Qlik Compose logs statements such as:&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;2024-03-11 18:38:24.056 [engine ] [INFO ] [] PI# 36 RUN : &lt;STRONG&gt;Adding staging rows&lt;/STRONG&gt; to TSTG_E2LIS_02_ITM_P&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;18:38:30.431 [engine ] [INFO ] [] PI# 39 RUN : &lt;STRONG&gt;Loop Back Point.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;pool-2-thread-3 2024-03-11 18:38:30.431 [engine ] [INFO ] [] &lt;STRONG&gt;Loop on&lt;/STRONG&gt; 35,36,37,38&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Loop Statements run in an iteration manner, which can lead to performance issues and tasks taking longer to load data.&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Compose runs the process step (Adding staging rows to TSTG_E2LIS_02_ITM_P) in an iteration manner when any of the columns are not mapped. Either we have to map this column or define an expression for this column and regenerate the statements. Hence the process step will not be in the loop.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;In the below example (Job E01 Initialization Map_2LIS_02_ITM) some of the columns are &lt;STRONG&gt;not mapped&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="manage data warehouse tasks Initialization.png" style="width: 667px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163638i949933DB06A64BC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="manage data warehouse tasks Initialization.png" alt="manage data warehouse tasks Initialization.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unmapped columns.png" style="width: 963px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163639i18EA7FB827C0089F/image-size/large?v=v2&amp;amp;px=999" role="button" title="unmapped columns.png" alt="unmapped columns.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;In the &lt;STRONG&gt;Task Statements&lt;/STRONG&gt;, we see the &lt;STRONG&gt;Loop Statements&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="task statements and loop statements.png" style="width: 549px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163640i74B33E688427F0E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="task statements and loop statements.png" alt="task statements and loop statements.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Once the columns are&amp;nbsp;&lt;STRONG&gt;mapped&amp;nbsp;&lt;/STRONG&gt;and the task statements&amp;nbsp;&lt;STRONG&gt;regenerated&lt;/STRONG&gt;, the loop statements are removed&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mapping columns.png" style="width: 854px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163641iDAB9967EFCF86666/image-size/large?v=v2&amp;amp;px=999" role="button" title="mapping columns.png" alt="mapping columns.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="no more loop statements.png" style="width: 856px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/163642i0F6AE8D2A8FC61DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="no more loop statements.png" alt="no more loop statements.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;After mapping the missed columns, the task can be able to load the data faster.&lt;/LI&gt;
&lt;/OL&gt;
&lt;H3&gt;&lt;STRONG&gt;&lt;FONT color="#339966"&gt;Cause&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;Compose runs the process step (Adding staging rows to TSTG_E2LIS_02_ITM_P) in an iteration manner when any of the columns are not mapped.&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Internal Investigation ID(s)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P class="lia-indent-padding-left-30px" data-unlink="true"&gt;QB-21468&lt;BR /&gt;QB-25783&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5" color="#339966"&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;LI-PRODUCT title="Qlik Compose" id="qlikcompose"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 08 Apr 2024 07:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Loop-Statement-in-Qlik-Compose-tasks-take-longer-than-expected/ta-p/2437310</guid>
      <dc:creator>sureshkumar</dc:creator>
      <dc:date>2024-04-08T07:53:29Z</dc:date>
    </item>
  </channel>
</rss>

