<?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 when processing the qvd file the memory is full in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/when-processing-the-qvd-file-the-memory-is-full/m-p/113691#M17612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;I have a file of 120 GB and it is increased daily, when I concatenate the new with the already stored, all the memory is filled. T&lt;SPAN lang="en"&gt;he code is the following:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15366125997357718" jivemacro_uid="_15366125997357718" modifiedtitle="true"&gt;
&lt;P&gt;MaxId:&lt;/P&gt;
&lt;P&gt;LOAD max(Id) as MaxId&lt;/P&gt;
&lt;P&gt;FROM [Files1\file1.qvd] (qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vMaxId = PEEK('MaxId');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE MaxId;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;D1:&amp;nbsp; LOAD *;&lt;/P&gt;
&lt;P&gt;SELECT * FROM TABLA&amp;nbsp; with&lt;/P&gt;
&lt;P&gt;(nolock) where Id&amp;gt;$(MaxId);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Concatenate(D1) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;OM [Files1\file1.qvd] (qvd)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where&amp;nbsp; not exists (Id);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;STORE D1 into 'Files1\file1.qvd' (qvd);&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;&lt;SPAN lang="en"&gt;any help I apreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2018 20:58:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-10T20:58:54Z</dc:date>
    <item>
      <title>when processing the qvd file the memory is full</title>
      <link>https://community.qlik.com/t5/QlikView/when-processing-the-qvd-file-the-memory-is-full/m-p/113691#M17612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;I have a file of 120 GB and it is increased daily, when I concatenate the new with the already stored, all the memory is filled. T&lt;SPAN lang="en"&gt;he code is the following:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; font-family: arial, sans-serif; font-size: 16px;"&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15366125997357718" jivemacro_uid="_15366125997357718" modifiedtitle="true"&gt;
&lt;P&gt;MaxId:&lt;/P&gt;
&lt;P&gt;LOAD max(Id) as MaxId&lt;/P&gt;
&lt;P&gt;FROM [Files1\file1.qvd] (qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;LET vMaxId = PEEK('MaxId');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP TABLE MaxId;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;D1:&amp;nbsp; LOAD *;&lt;/P&gt;
&lt;P&gt;SELECT * FROM TABLA&amp;nbsp; with&lt;/P&gt;
&lt;P&gt;(nolock) where Id&amp;gt;$(MaxId);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Concatenate(D1) &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FR&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;OM [Files1\file1.qvd] (qvd)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;where&amp;nbsp; not exists (Id);&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;STORE D1 into 'Files1\file1.qvd' (qvd);&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;&lt;SPAN lang="en"&gt;any help I apreciated&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2018 20:58:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/when-processing-the-qvd-file-the-memory-is-full/m-p/113691#M17612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-10T20:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: when processing the qvd file the memory is full</title>
      <link>https://community.qlik.com/t5/QlikView/when-processing-the-qvd-file-the-memory-is-full/m-p/113692#M17613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are just appending new data to the historical data and therefore it should be possible to slice the big qvd into multiple ones - maybe on YearMonth and if there is no period within the data maybe by clustering the ID's to 100k or similar. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further I suggest to generate the MaxId after the database-load and to store this value within a variable - and by reading the fieldvalues instead of the table-records it could be further optimized, see: &lt;A href="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/" title="http://qlikviewcookbook.com/2013/09/fastest-method-to-read-maxfield-from-a-qvd/"&gt;“Fastest” Method to Read max(field) From a QVD | Qlikview Cookbook&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beside this you should check if the qvd-data itself could be optimized. This means to remove not used fields - you are loading the data with a wildcard - are you sure that you really needs all fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further the reducing of the max. number of distinct field-values could decrease the needed space significantely especially by timestamps, see: &lt;A href="https://community.qlik.com/qlik-blogpost/3632"&gt;The Importance Of Being Distinct&lt;/A&gt;. Another big point is the removing from multiple formattings of a field - a pure number needs 8 byte and if all fieldvalues have the same formatting it remained by 8 byte because the formatting is then stored within the meta-data - but if there is more than a single format than the formatting will be stored for each field-value and this could be a lot more (by timestamps you hit 40 to 50 bytes easily).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Sep 2018 09:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/when-processing-the-qvd-file-the-memory-is-full/m-p/113692#M17613</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-11T09:04:50Z</dc:date>
    </item>
  </channel>
</rss>

