<?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: Load script consumes too much RAM in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-script-consumes-too-much-RAM/m-p/834766#M293686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben, your last left join shouldn't be?:&lt;/P&gt;&lt;P&gt;left join (Travellers)&lt;/P&gt;&lt;P&gt;load distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&lt;STRONG&gt;Key_Trans_Travellers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cust_name &amp;amp; '|' &amp;amp; cost_centre as CostCenterGroupID...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2015 11:10:18 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2015-04-01T11:10:18Z</dc:date>
    <item>
      <title>Load script consumes too much RAM</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-consumes-too-much-RAM/m-p/834765#M293685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm facing a problem executing a script and I hope someone could helpe me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got 3 tables, Customers, Transactions and Travellers linked and I want to create a new field in Travellers as cust_name &amp;amp; '|' &amp;amp; cost_center due to cost_center value can be the same for different customers while in fact they are different. Then I will link that new field to a new cost_center dimension table.&lt;/P&gt;&lt;P&gt;My problem is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%Key_Trans_Customer &lt;/P&gt;&lt;P&gt;cust_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Transactions&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;trans_id&lt;/P&gt;&lt;P&gt;%Key_Trans_Customer &lt;/P&gt;&lt;P&gt;%Key_Trans_Travellers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Travellers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;%Key_Trans_Travellers&lt;/P&gt;&lt;P&gt;cost_centre&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what I do is to create a table with the distinct values with corresponding cust_name and cost_centre values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmp_cust_trav:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_Trans_Travellers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_Trans_Customer &lt;/P&gt;&lt;P&gt;resident Transactions; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (tmp_cust_trav)&lt;/P&gt;&lt;P&gt;load distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_Trans_Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; cust_name&lt;/P&gt;&lt;P&gt;resident Customer&lt;/P&gt;&lt;P&gt;where Exists( %Key_Trans_Customer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (tmp_cust_trav)&lt;/P&gt;&lt;P&gt;load distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_Trans_Travellers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cost_centre&lt;/P&gt;&lt;P&gt;resident Travellers&lt;/P&gt;&lt;P&gt;where Exists( %Key_Trans_Travellers);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I add the new field to Travellers table from the previous tmp table but the execution here uses more and more RAM as time goes by until it gets all server ram (more than 80Gb) which I think is not normal. Travellers table has 20 milion rows and tmp_cust_trav around 100K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (Travellers)&lt;/P&gt;&lt;P&gt;load distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %Key_Trans_Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cust_name &amp;amp; '|' &amp;amp; cost_centre as CostCenterGroupID&lt;/P&gt;&lt;P&gt;resident tmp_cust_trav&lt;/P&gt;&lt;P&gt;where Exists( %Key_Trans_Customer);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea to solve it?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 11:01:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-consumes-too-much-RAM/m-p/834765#M293685</guid>
      <dc:creator />
      <dc:date>2015-04-01T11:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Load script consumes too much RAM</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-consumes-too-much-RAM/m-p/834766#M293686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben, your last left join shouldn't be?:&lt;/P&gt;&lt;P&gt;left join (Travellers)&lt;/P&gt;&lt;P&gt;load distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&lt;STRONG&gt;Key_Trans_Travellers,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; cust_name &amp;amp; '|' &amp;amp; cost_centre as CostCenterGroupID...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 11:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-consumes-too-much-RAM/m-p/834766#M293686</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-04-01T11:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Load script consumes too much RAM</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-consumes-too-much-RAM/m-p/834767#M293687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shit you are right, what a mistake... 4 eyes better than 2!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 13:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-consumes-too-much-RAM/m-p/834767#M293687</guid>
      <dc:creator />
      <dc:date>2015-04-01T13:15:49Z</dc:date>
    </item>
  </channel>
</rss>

