<?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: QVD file question. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QVD-file-question/m-p/632112#M678507</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get a fast reload of a QVD-file it need to be "QVD-Optimized". In general that means you can not do any calculations in the load and all fields previous loaded into the current table must be included in the QVD-file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But qlikview allows the use of single parameter Exists() in QVD-optimized reloads.&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14000739056489817 jive_macro_code" jivemacro_uid="_14000739056489817"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Create Data Table:&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load RecNo() as TransId, Floor(Rand()*10) as TypeId autogenerate 5000000;&lt;/P&gt;
&lt;P&gt;Store Data into data.qvd;&lt;/P&gt;
&lt;P&gt;Drop Table Data;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Define Type 2 Load&lt;/P&gt;
&lt;P&gt;_Type:&lt;/P&gt;
&lt;P&gt;Load 8 as TypeId autogenerate 1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Load Table from&lt;/P&gt;
&lt;P&gt;TransTable:&lt;/P&gt;
&lt;P&gt;Load * From data.qvd (qvd) Where Exists (TypeId);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// Or Load TransId, TypeId From data.qvd (qvd) Where Exists (TypeId);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table _Type;&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;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above show the creation of a Data-Table with 5.000.000 records grouped in 10 random Types (1-10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I specify what type i want to load in a temp-table =&amp;gt; In this case TypeId = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I Load the Data-table as QVD-Optimized only for Type 8 with the use of "Exists(TypeId)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read more about QVD-Optimized loads here:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="margin-bottom: 20px; color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;Some examples of things that will cause a non-optimised load are:&lt;/P&gt;
&lt;P style="margin-bottom: 20px; color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;- Adding new fields to the table&lt;BR /&gt;- Deriving new values from a field in the QVD&lt;BR /&gt;- Retrieving a field twice&lt;BR /&gt;- Most WHERE conditions&lt;BR /&gt;- Joining to an existing in memory table&lt;BR /&gt;- Loading data into a mapping table&lt;/P&gt;
&lt;P style="margin-bottom: 20px; color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;In contrast the things you are allowed to do are:&lt;/P&gt;
&lt;P style="margin-bottom: 20px; color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;- Rename fields&lt;BR /&gt;- Omit fields&lt;BR /&gt;- Do a simple one field WHERE EXISTS on a field returned in the record set&lt;/P&gt;
&lt;P style="margin-bottom: 20px; color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;A href="http://www.quickintelligence.co.uk/qlikview-optimised-qvd-loads/"&gt;http://www.quickintelligence.co.uk/qlikview-optimised-qvd-loads/&lt;/A&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 13:19:24 GMT</pubDate>
    <dc:creator>martinpedersen</dc:creator>
    <dc:date>2014-05-14T13:19:24Z</dc:date>
    <item>
      <title>QVD file question.</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-file-question/m-p/632111#M678506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a qvd file for transactions.&amp;nbsp; It consists of transactions from 10 products. Within each product there are three to four different types of transactions.&amp;nbsp; Each transaction has a different transaction type ID to identify It.&amp;nbsp; For instance issue tranactions has a transaction type id = 1.&amp;nbsp; Now with that said my transaction qvd file is over 500 million rows.&amp;nbsp; I can load the tranasaction qvd with a where clause with a transaction type id = 1 to return the issue transanctions.&amp;nbsp; The problem is it when the script runs it has to go line by line finding the match criteria.&amp;nbsp; This is a time consuming progress.&amp;nbsp; Is there any better way to setup the qvd so it can be read quicker.&amp;nbsp; Any thoughts?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2014 23:22:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-file-question/m-p/632111#M678506</guid>
      <dc:creator />
      <dc:date>2014-05-13T23:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: QVD file question.</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-file-question/m-p/632112#M678507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To get a fast reload of a QVD-file it need to be "QVD-Optimized". In general that means you can not do any calculations in the load and all fields previous loaded into the current table must be included in the QVD-file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But qlikview allows the use of single parameter Exists() in QVD-optimized reloads.&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14000739056489817 jive_macro_code" jivemacro_uid="_14000739056489817"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Create Data Table:&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load RecNo() as TransId, Floor(Rand()*10) as TypeId autogenerate 5000000;&lt;/P&gt;
&lt;P&gt;Store Data into data.qvd;&lt;/P&gt;
&lt;P&gt;Drop Table Data;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Define Type 2 Load&lt;/P&gt;
&lt;P&gt;_Type:&lt;/P&gt;
&lt;P&gt;Load 8 as TypeId autogenerate 1;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Load Table from&lt;/P&gt;
&lt;P&gt;TransTable:&lt;/P&gt;
&lt;P&gt;Load * From data.qvd (qvd) Where Exists (TypeId);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;// Or Load TransId, TypeId From data.qvd (qvd) Where Exists (TypeId);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table _Type;&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;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above show the creation of a Data-Table with 5.000.000 records grouped in 10 random Types (1-10).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I specify what type i want to load in a temp-table =&amp;gt; In this case TypeId = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally I Load the Data-table as QVD-Optimized only for Type 8 with the use of "Exists(TypeId)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Read more about QVD-Optimized loads here:&lt;/STRONG&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="margin-bottom: 20px; color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;Some examples of things that will cause a non-optimised load are:&lt;/P&gt;
&lt;P style="margin-bottom: 20px; color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;- Adding new fields to the table&lt;BR /&gt;- Deriving new values from a field in the QVD&lt;BR /&gt;- Retrieving a field twice&lt;BR /&gt;- Most WHERE conditions&lt;BR /&gt;- Joining to an existing in memory table&lt;BR /&gt;- Loading data into a mapping table&lt;/P&gt;
&lt;P style="margin-bottom: 20px; color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;In contrast the things you are allowed to do are:&lt;/P&gt;
&lt;P style="margin-bottom: 20px; color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;- Rename fields&lt;BR /&gt;- Omit fields&lt;BR /&gt;- Do a simple one field WHERE EXISTS on a field returned in the record set&lt;/P&gt;
&lt;P style="margin-bottom: 20px; color: #747474; font-family: 'PT Sans', Arial, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;A href="http://www.quickintelligence.co.uk/qlikview-optimised-qvd-loads/"&gt;http://www.quickintelligence.co.uk/qlikview-optimised-qvd-loads/&lt;/A&gt;&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 13:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-file-question/m-p/632112#M678507</guid>
      <dc:creator>martinpedersen</dc:creator>
      <dc:date>2014-05-14T13:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: QVD file question.</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-file-question/m-p/632113#M678508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i understand well you have a big QVD holding everything and you want to load only Type =1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution 1 :&lt;/P&gt;&lt;P&gt;Load everything and put a list box to select value 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution 2 :&lt;/P&gt;&lt;P&gt;when you store qvd make it by type, so store one Type_1.qvd, Type_2.qvd, ...&amp;nbsp; you can choose then which you xant to load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No more ideas&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 14:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-file-question/m-p/632113#M678508</guid>
      <dc:creator />
      <dc:date>2014-05-14T14:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: QVD file question.</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-file-question/m-p/632114#M678509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try an optimsied load, assuming that your source is a QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;type id,&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [type id]&lt;/P&gt;&lt;P&gt;FROM yoursource.qvd&lt;/P&gt;&lt;P&gt;WHERE Exists ([type id]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 15:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-file-question/m-p/632114#M678509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-14T15:18:44Z</dc:date>
    </item>
  </channel>
</rss>

