<?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 Performance concerns when running a low-memory script all day in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Performance-concerns-when-running-a-low-memory-script-all-day/m-p/1703914#M592193</link>
    <description>&lt;P&gt;I have implemented a script that I found in the community that will be triggered on a daily basis, but only completes successfully if the daily table that it is referencing holds data for the current day. Every time the condition that checks if there is data for today is not met, the for loop restarts after it sleeps for 10 minutes. Most of the time, the daily table is ready in the morning, but on occasion the table will not be ready until later in the afternoon, or even the next day.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are there any performance concerns for potentially running this script all day on the QV server even though the file is so small?&lt;/LI&gt;&lt;LI&gt;Is the load using up any memory while in the sleep stage or does "sleep" entail idleness?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I'm assuming that this process has the potential to use one of the scheduling threads all day ... is there any way to prevent this from happening?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is the script:&lt;/P&gt;&lt;P&gt;LET vCase_2 = null();&lt;/P&gt;&lt;P&gt;//start loop&lt;/P&gt;&lt;P&gt;Do until vCase_2 = 'go'&lt;/P&gt;&lt;P&gt;trigger_tmp:&lt;BR /&gt;SELECT&lt;BR /&gt;CASE WHEN CLOSE_WEEK_END_DATE = to_char(sysdate,'YYYYMMDD')&lt;BR /&gt;THEN 1&lt;BR /&gt;ELSE 0&lt;BR /&gt;END AS CASE&lt;BR /&gt;FROM&lt;BR /&gt;(SELECT max(DAILY.CLOSE_WEEK_END_DATE) CLOSE_WEEK_END_DATE&lt;BR /&gt;FROM DAILY_TABLE DAILY)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Trigger:&lt;BR /&gt;LOAD&lt;BR /&gt;IF(CASE = 0,'stop','go') AS CASE_2&lt;BR /&gt;RESIDENT trigger_tmp;&lt;/P&gt;&lt;P&gt;DROP TABLE trigger_tmp;&lt;/P&gt;&lt;P&gt;LET vCase_2 = peek('CASE_2',0,'check');&lt;/P&gt;&lt;P&gt;// where condition is met, exit and complete.&lt;/P&gt;&lt;P&gt;if vCase_2 = 'go' then&lt;/P&gt;&lt;P&gt;Exit Do&lt;/P&gt;&lt;P&gt;// where condition is not met, drop that table ready to restart the load process.&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;DROP TABLE Trigger;&lt;/P&gt;&lt;P&gt;Sleep 600000; // 600000 milliseconds = 10 minutes.&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;// where condition is not met then restart loop.&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:36:44 GMT</pubDate>
    <dc:creator>halvarado</dc:creator>
    <dc:date>2024-11-16T18:36:44Z</dc:date>
    <item>
      <title>Performance concerns when running a low-memory script all day</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-concerns-when-running-a-low-memory-script-all-day/m-p/1703914#M592193</link>
      <description>&lt;P&gt;I have implemented a script that I found in the community that will be triggered on a daily basis, but only completes successfully if the daily table that it is referencing holds data for the current day. Every time the condition that checks if there is data for today is not met, the for loop restarts after it sleeps for 10 minutes. Most of the time, the daily table is ready in the morning, but on occasion the table will not be ready until later in the afternoon, or even the next day.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Are there any performance concerns for potentially running this script all day on the QV server even though the file is so small?&lt;/LI&gt;&lt;LI&gt;Is the load using up any memory while in the sleep stage or does "sleep" entail idleness?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I'm assuming that this process has the potential to use one of the scheduling threads all day ... is there any way to prevent this from happening?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is the script:&lt;/P&gt;&lt;P&gt;LET vCase_2 = null();&lt;/P&gt;&lt;P&gt;//start loop&lt;/P&gt;&lt;P&gt;Do until vCase_2 = 'go'&lt;/P&gt;&lt;P&gt;trigger_tmp:&lt;BR /&gt;SELECT&lt;BR /&gt;CASE WHEN CLOSE_WEEK_END_DATE = to_char(sysdate,'YYYYMMDD')&lt;BR /&gt;THEN 1&lt;BR /&gt;ELSE 0&lt;BR /&gt;END AS CASE&lt;BR /&gt;FROM&lt;BR /&gt;(SELECT max(DAILY.CLOSE_WEEK_END_DATE) CLOSE_WEEK_END_DATE&lt;BR /&gt;FROM DAILY_TABLE DAILY)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Trigger:&lt;BR /&gt;LOAD&lt;BR /&gt;IF(CASE = 0,'stop','go') AS CASE_2&lt;BR /&gt;RESIDENT trigger_tmp;&lt;/P&gt;&lt;P&gt;DROP TABLE trigger_tmp;&lt;/P&gt;&lt;P&gt;LET vCase_2 = peek('CASE_2',0,'check');&lt;/P&gt;&lt;P&gt;// where condition is met, exit and complete.&lt;/P&gt;&lt;P&gt;if vCase_2 = 'go' then&lt;/P&gt;&lt;P&gt;Exit Do&lt;/P&gt;&lt;P&gt;// where condition is not met, drop that table ready to restart the load process.&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;DROP TABLE Trigger;&lt;/P&gt;&lt;P&gt;Sleep 600000; // 600000 milliseconds = 10 minutes.&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;// where condition is not met then restart loop.&lt;/P&gt;&lt;P&gt;loop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-concerns-when-running-a-low-memory-script-all-day/m-p/1703914#M592193</guid>
      <dc:creator>halvarado</dc:creator>
      <dc:date>2024-11-16T18:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Performance concerns when running a low-memory script all day</title>
      <link>https://community.qlik.com/t5/QlikView/Performance-concerns-when-running-a-low-memory-script-all-day/m-p/1704000#M592194</link>
      <description>&lt;P&gt;We do the same thing on multiple applications.&amp;nbsp; If you have multiple tasks that run in the QMC, you need to check the&amp;nbsp;&lt;A href="https://support.qlik.com/articles/000039069" target="_self"&gt;Max number of simultaneous QlikView engines for distribution&lt;/A&gt;&amp;nbsp;, because the default is 4.&amp;nbsp; The task that is waiting is taking up 1 of those engines.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 22:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Performance-concerns-when-running-a-low-memory-script-all-day/m-p/1704000#M592194</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-05-20T22:09:31Z</dc:date>
    </item>
  </channel>
</rss>

