<?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: Optimization? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415519#M427656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These "funny" apps - those are Monitoring_apps (we have a herd of those, one for every extract_Job there is). All they do is collect some meta_data on the qvd_files that have been generated, for whatever that is worth ...&lt;/P&gt;&lt;P&gt;Up to now, the qvd's were loaded (optimized) just to Count the nr. of records there is. I replaced that with loading just one field, a &amp;gt;&amp;gt;rowNo()&amp;lt;&amp;lt; - but that does not seem to have shortened their runtime dramatically ... is there a faster way to do that?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Sep 2017 08:03:17 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2017-09-15T08:03:17Z</dc:date>
    <item>
      <title>Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415508#M427645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am just looking through an app that is supposed to do some Quality-checking on the Background of another app to help in looking for the cause of a potential reload_failure ...&lt;/P&gt;&lt;P&gt;At the same time I am thinking about ways to maybe optimize this.&lt;/P&gt;&lt;P&gt;There is one IF_THEN_clause pretty much at the beginning using &amp;gt;&amp;gt; qvdcreatetime &amp;lt;&amp;lt; of a rather large qvd - that takes quite a while - is there any way to get the same effect quicker?&lt;/P&gt;&lt;P&gt;Maybe I can store only the timestamp (&amp;gt;&amp;gt;NOW()) at the time that qvd is saved pretty much at the end of the daily script_run - would that&amp;nbsp; make it faster, if I only load a very small file to check that?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Moreover, this function is, afaIk, only used to decide whether there is such a qvd at all, the actual creation_time is not relevant - this IF_THEN is merely wrapped around a concat_load. That seems like a case of "if I were going there, I wouldn't be starting from here" to me, no?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 09:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415508#M427645</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-09-14T09:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415509#M427646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess some Information - like the creation_time - are stored in the Header of a qvd, no? That is the question - I cannot answer that based on the help_file - if I just want to know whether a qvd with a given Name exists, what would be the most efficient method to find out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: I just found another thread with a proposal from &lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ using the &amp;gt;&amp;gt; Filelist &amp;lt;&amp;lt; function. Might that be faster?&lt;/P&gt;&lt;P&gt;Well, I guess there's no better way to find out than trying. So let's see ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 10:59:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415509#M427646</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-09-14T10:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415510#M427647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QvdCreateTime() - returns a timestamp of the file creation if the file exists, otherwise it returns a NULL. So you can check if the returned value is not-null, then the file exists, else - no such file. I am not sure - what exactly you are asking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415510#M427647</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-09-14T11:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415511#M427648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well, like the title of this thread is supposed to suggest, my question is about optimization - I know that this function can tell me whether or not the file exists, that's what it's supposed to do in this context - I just wonder whether this is the best possible way to get this Information? It seemed to take quite Long when I executed this in debug_mode - is there a way to do that quicker?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: That solution by swuehl using &amp;gt;&amp;gt; FileList &amp;lt;&amp;lt; seems to be a lot quicker indeed. That's just what we Need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415511#M427648</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-09-14T11:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415512#M427649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please share your script snippet that shows how exactly you are using that? I have just tested using the same function - with no significant time delay. A wild guess, are you using a network path for qvd?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Are you using a loop to check through folder hierarchy? If so, the loop itself could be the reason rather than the function, I guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415512#M427649</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-09-14T11:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415513#M427650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope - it's on a Server, the path to the qvd is in a variable - I'll paste it all here, the qvd is in a sub-Folder in the same Directory as the qvw - that is one of our development_Standards here.&lt;/P&gt;&lt;P&gt;The qvd is huge - about 1.3 GB - that might be why it's taking longer than usual ...&lt;/P&gt;&lt;P&gt;That script block is as follows&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;// That path_variable has the value &amp;gt;&amp;gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;set&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vQVDPfadSchreiben&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = '.\QS_qvd\'; &amp;lt;&amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;// That table has been initiated with an &amp;gt;&amp;gt; autogenerate(0)&amp;nbsp; &amp;lt;&amp;lt; beforehand&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvdcreatetime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('$(vQVDPfadSchreiben)QS_S4_Fehler.qvd')&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (QS_S4_Fehler) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; *&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vQVDPfadSchreiben)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;QS_S4_Fehler.qvd (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;);&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;endif&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415513#M427650</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-09-14T11:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415514#M427651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why do you think, it takes long?&lt;/P&gt;&lt;P&gt;Tested with some 30M rows, and returned resutl in less than 1 second ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:27:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415514#M427651</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-14T11:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415515#M427652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, well - it might just be me - but tell me, how do you quickly create a 1.3 GB qvd_file to test with?&lt;/P&gt;&lt;P&gt;That would be really helpful going Forward - that way we could test the "futurability" of our Scripting right away ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Funny, even after restarting, it now does run quite quickly - it did take Long when I did it for the first time - but that might have been for some other reason. Well, there's no Need for optimization then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:37:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415515#M427652</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-09-14T11:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415516#M427653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure, but think that these kind of functions read only the XML-header of the files, for which you do not need to open the entire file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415516#M427653</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-14T11:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415517#M427654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that could be a possibility, using &lt;STRONG&gt;filesize()&lt;/STRONG&gt; could be a better choice (hope, to calculate file size, the file has not be opened. But possible, qlik might use same XML header logic), Try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 12:12:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415517#M427654</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-09-14T12:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415518#M427655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are enough Points where I can have a critical look at potential for optimization - I am just looking at another script where, such as I understand it&lt;/P&gt;&lt;P&gt;- a list of all qvd_files in a Directory is generated&lt;/P&gt;&lt;P&gt;- this list is sorted asc. by filetime&lt;/P&gt;&lt;P&gt;- The ID of the one with the newest filetime (which happens to be the very last one) is extracted&lt;/P&gt;&lt;P&gt;- A statistics_table drawing from that identifies whether there is an up-to-date file in that table (well, there is only one file in the table &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- If that is the case, the path to that file is extracted&lt;/P&gt;&lt;P&gt;=&amp;gt; and then the file is loaded.&lt;/P&gt;&lt;P&gt;Oopsie - ah, well, yes, definitely possible and seemingly correct ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 12:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415518#M427655</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-09-14T12:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415519#M427656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These "funny" apps - those are Monitoring_apps (we have a herd of those, one for every extract_Job there is). All they do is collect some meta_data on the qvd_files that have been generated, for whatever that is worth ...&lt;/P&gt;&lt;P&gt;Up to now, the qvd's were loaded (optimized) just to Count the nr. of records there is. I replaced that with loading just one field, a &amp;gt;&amp;gt;rowNo()&amp;lt;&amp;lt; - but that does not seem to have shortened their runtime dramatically ... is there a faster way to do that?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 08:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415519#M427656</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-09-15T08:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415520#M427657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several functions to read meta-data from QVD,&lt;/P&gt;&lt;P&gt;below copied from OL-Help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176731_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;This may help, as they do not open the QVDs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 08:36:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415520#M427657</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2017-09-15T08:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Optimization?</title>
      <link>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415521#M427658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep - the &amp;gt;&amp;gt; QVDNoOfRecords &amp;lt;&amp;lt; might help &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; I'll see what can be done.&lt;/P&gt;&lt;P&gt;The meaning and importance of all These apps is a bit unclear to me anyway - Monitoring all of the apps seems like a good idea in case several Tasks overlap on the Server and one Fails, that could help with Debugging ... but one app for every Extractor seems a bit over the top ...&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 09:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimization/m-p/1415521#M427658</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2017-09-15T09:15:18Z</dc:date>
    </item>
  </channel>
</rss>

