<?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: Filtering QV recrods in memory is slower than loading from file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416148#M699681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A resident load can be slower than a direct load from qvd. Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;&lt;SPAN style="font-size: 8pt;"&gt;IN_TABLE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;FROM [.\INPUT.qvd] (qvd)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;WHERE DATA_TYPE_ID=200;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;Store IN_TABLE into [.\OUTPUT.qvd];&lt;/SPAN&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Dec 2012 07:25:07 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2012-12-07T07:25:07Z</dc:date>
    <item>
      <title>Filtering QV recrods in memory is slower than loading from file</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416147#M699680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the below code which will &lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Read a qvd file, &lt;/LI&gt;&lt;LI&gt;Filter the data and &lt;/LI&gt;&lt;LI&gt;Store it to another qvd file.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13548639923805052" jivemacro_uid="_13548639923805052"&gt;&lt;P&gt;IN_TABLE:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM [.\INPUT.qvd] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OUT_TABLE:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident IN_TABLE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE &lt;/STRONG&gt;DATA_TYPE_ID=200;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store OUT_TABLE into [.\OUTPUT.qvd];&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But during the filtering process (where statment), it scan thur the IN_TABLE very slowly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I doing it wrong? &lt;/P&gt;&lt;P&gt;Is there any way to speed up the filtering?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 07:12:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416147#M699680</guid>
      <dc:creator />
      <dc:date>2012-12-07T07:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering QV recrods in memory is slower than loading from file</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416148#M699681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A resident load can be slower than a direct load from qvd. Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;&lt;SPAN style="font-size: 8pt;"&gt;IN_TABLE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;FROM [.\INPUT.qvd] (qvd)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;WHERE DATA_TYPE_ID=200;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 8pt;"&gt;Store IN_TABLE into [.\OUTPUT.qvd];&lt;/SPAN&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 07:25:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416148#M699681</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-07T07:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering QV recrods in memory is slower than loading from file</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416149#M699682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried it, but QV will still load the data as 2 seperate steps. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No improvment in loading time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 07:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416149#M699682</guid>
      <dc:creator />
      <dc:date>2012-12-07T07:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering QV recrods in memory is slower than loading from file</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416150#M699683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just done some quick testing on this and if the QVD is written with the data sorted by the filtering field, I get a big improvement in load times by using an inner join rather than a where clause, so ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RandNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;[DataSorted.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;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;inner&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; 424372 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RandNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;autogenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; 1; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;... gives a better result than ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RandNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&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;[DataSorted.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;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RandNumber&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='424372'); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If the data is unsorted there is no improvement.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;flipside&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 09:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416150#M699683</guid>
      <dc:creator>flipside</dc:creator>
      <dc:date>2012-12-07T09:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering QV recrods in memory is slower than loading from file</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416151#M699684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;But data is unsorted.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/info.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 09:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-QV-recrods-in-memory-is-slower-than-loading-from-file/m-p/416151#M699684</guid>
      <dc:creator />
      <dc:date>2012-12-07T09:13:10Z</dc:date>
    </item>
  </channel>
</rss>

