<?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: How to optimize the given code! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-optimize-the-given-code/m-p/557302#M208068</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help from anyone on this? I am not getting any idea on how to optimize the above code &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;. Please help! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Nov 2013 03:23:28 GMT</pubDate>
    <dc:creator>qlikviewforum</dc:creator>
    <dc:date>2013-11-22T03:23:28Z</dc:date>
    <item>
      <title>How to optimize the given code!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-optimize-the-given-code/m-p/557299#M208065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;We are using the below code to list down all the QV related files on disk. Below code works fine without any issue and gives the expected result. But the problem is it is generating the bigger log file and whereas the size is much lesser than the logfile(Almost 100 times smaller than the size of the logfile).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I would like to know is there is any way optimize the below code so that logfile which is generated is not bigger. Also it would be great if doesn't take much time also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though we don't have control over what is logged but we may need to improve the code. For example, if one piece of code is using variable and another using table. Always variable based code generates huge log files than the second one which is using table but in more efficient way where the logged information is smaller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13850278502205259" jivemacro_uid="_13850278502205259"&gt;
&lt;P&gt;// list all QV related files on disk&lt;/P&gt;
&lt;P&gt;sub DoDir (Root)&lt;/P&gt;
&lt;P&gt;for each Ext in 'qvw', 'qva', 'qvo', 'qvs'&lt;/P&gt;
&lt;P&gt;for each File in filelist (Root&amp;amp;' \*.' &amp;amp;Ext)&lt;/P&gt;
&lt;P&gt;Load '$(File)' as Name, FileSize( '$(File)' ) as&lt;/P&gt;
&lt;P&gt;Size, FileTime( '$(File)' ) as FileTime&lt;/P&gt;
&lt;P&gt;autogenerate 1;&lt;/P&gt;
&lt;P&gt;next File&lt;/P&gt;
&lt;P&gt;next Ext&lt;/P&gt;
&lt;P&gt;for each Dir in dirlist (Root&amp;amp;' \*' )&lt;/P&gt;
&lt;P&gt;call DoDir (Dir)&lt;/P&gt;
&lt;P&gt;next Dir&lt;/P&gt;
&lt;P&gt;end sub&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;call DoDir ('C:')&lt;/P&gt;
 &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 09:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-optimize-the-given-code/m-p/557299#M208065</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-21T09:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize the given code!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-optimize-the-given-code/m-p/557300#M208066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put the subroutine in the hidden script. That way the subroutine won't generate logging.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 09:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-optimize-the-given-code/m-p/557300#M208066</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-11-21T09:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize the given code!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-optimize-the-given-code/m-p/557301#M208067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gysbert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess this may not be the rightway to optimize the code. Correct me if I am wrong. I agree that this may reduce the logging. We do need the logfile to be generated so that we can look into the logfile in case of any failures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So can you suggest some other thing(Without the use of hidden script) where I can show that I really done some optimization in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my requirement is understandable!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 10:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-optimize-the-given-code/m-p/557301#M208067</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-21T10:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to optimize the given code!</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-optimize-the-given-code/m-p/557302#M208068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any help from anyone on this? I am not getting any idea on how to optimize the above code &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cry.png" /&gt;. Please help! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 03:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-optimize-the-given-code/m-p/557302#M208068</guid>
      <dc:creator>qlikviewforum</dc:creator>
      <dc:date>2013-11-22T03:23:28Z</dc:date>
    </item>
  </channel>
</rss>

