<?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 OUT OF VIRTUAL AND/OR LOGICAL MEMORY, allocationg 4096 MB in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OUT-OF-VIRTUAL-AND-OR-LOGICAL-MEMORY-allocationg-4096-MB/m-p/189609#M52424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works. Thank you so much.&lt;/P&gt;&lt;P&gt;So in other words fieldvalue function is auto distinguish mechanism for each field, isn't it?&lt;/P&gt;&lt;P&gt;But why it doesn't work with regular approach with "LOAD DISTINCT" ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jun 2010 21:52:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-06-15T21:52:20Z</dc:date>
    <item>
      <title>OUT OF VIRTUAL AND/OR LOGICAL MEMORY, allocationg 4096 MB</title>
      <link>https://community.qlik.com/t5/QlikView/OUT-OF-VIRTUAL-AND-OR-LOGICAL-MEMORY-allocationg-4096-MB/m-p/189607#M52422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anybody explain what's wrong is going on with this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-1797_sourceID:1797" /&gt;&lt;/P&gt;&lt;P&gt;This is MS Server 2008 Enterprise x64. I have QV 9.00.7440.8 SR3 64-bit Edition on it.&lt;/P&gt;&lt;P&gt;As you can see, it has 98GB RAM. At the error time, it cached 15.6 GB and 48.8 GB of free memory in page file. But it still have about 60GB in RAM as free memory. Why does it say what it says?&lt;/P&gt;&lt;P&gt;If it loads about 100 millions records for main table there is no problem at all. But I need more data for longer period. And it starts to happen when it loads 500 millions records for main table. The dashboard doesn't have any synthetic keys. Here is part of the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Let vFromDate=num(monthstart(addmonths(now(), - 13)));&lt;BR /&gt;Let vToDate = num(floor(now() - 4));&lt;BR /&gt;Let vTempDate = vFromDate;&lt;BR /&gt;set ErrorMode = 0;&lt;BR /&gt;do while vTempDate &amp;lt; vToDate&lt;BR /&gt;&lt;BR /&gt; Let FileFilter = date(vTempDate, '-YYYY-MMM-D');&lt;BR /&gt; AggrSession:&lt;BR /&gt; load&lt;BR /&gt; TZHourStationId,&lt;BR /&gt; AggrCountry,&lt;BR /&gt; AggrTLH,&lt;BR /&gt; AggrSS,&lt;BR /&gt; AggrES&lt;BR /&gt; from ..\qvd\AggrSession$(FileFilter).qvd (qvd);&lt;BR /&gt;&lt;BR /&gt; Let vTempDate = vTempDate + 1;&lt;BR /&gt;&lt;BR /&gt;loop&lt;BR /&gt;set ErrorMode = 1;&lt;BR /&gt;TZStationCalendar:&lt;BR /&gt;load distinct&lt;BR /&gt; TZHourStationId&lt;BR /&gt;resident AggrSession;&lt;BR /&gt;&lt;BR /&gt;left join (TZStationCalendar)&lt;BR /&gt;load&lt;BR /&gt; TZHourStationId,&lt;BR /&gt; num(left(TZHourStationId, 1)) as TZId,&lt;BR /&gt; num(right(TZHourStationId, 6)) as StationId,&lt;BR /&gt; num(mid(TZHourStationId, 2, 7)) as dmNumDateHour&lt;BR /&gt;resident TZStationCalendar;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It runs OK till TZStationCalendar creation statement. When it tries to do the last LEFT JOIN (TZStationCalendar) the error is popping up.&lt;/P&gt;&lt;P&gt;Does anybody have any idea what's wrong with it?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 19:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OUT-OF-VIRTUAL-AND-OR-LOGICAL-MEMORY-allocationg-4096-MB/m-p/189607#M52422</guid>
      <dc:creator />
      <dc:date>2010-06-15T19:20:36Z</dc:date>
    </item>
    <item>
      <title>OUT OF VIRTUAL AND/OR LOGICAL MEMORY, allocationg 4096 MB</title>
      <link>https://community.qlik.com/t5/QlikView/OUT-OF-VIRTUAL-AND-OR-LOGICAL-MEMORY-allocationg-4096-MB/m-p/189608#M52423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure why the server won't grab more memory.&lt;/P&gt;&lt;P&gt;I don't expect this to solve your memory problem, but it does eliminate the problematic join and should run somewhat faster:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;TZStationCalendar:&lt;BR /&gt;LOAD&lt;BR /&gt; TZHourStationId&lt;BR /&gt;,num(left(TZHourStationId,1)) as TZId&lt;BR /&gt;,num(right(TZHourStationId,6)) as StationId&lt;BR /&gt;,num(mid(TZHourStationId,2,7)) as dmNumDateHour&lt;BR /&gt;;&lt;BR /&gt;LOAD fieldvalue(TZHourStationID,iterno()) as TZHourStationID&lt;BR /&gt;AUTOGENERATE 1&lt;BR /&gt;WHILE len(fieldvalue(TZHourStationID,iterno()))&lt;BR /&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 20:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OUT-OF-VIRTUAL-AND-OR-LOGICAL-MEMORY-allocationg-4096-MB/m-p/189608#M52423</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-15T20:46:24Z</dc:date>
    </item>
    <item>
      <title>OUT OF VIRTUAL AND/OR LOGICAL MEMORY, allocationg 4096 MB</title>
      <link>https://community.qlik.com/t5/QlikView/OUT-OF-VIRTUAL-AND-OR-LOGICAL-MEMORY-allocationg-4096-MB/m-p/189609#M52424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works. Thank you so much.&lt;/P&gt;&lt;P&gt;So in other words fieldvalue function is auto distinguish mechanism for each field, isn't it?&lt;/P&gt;&lt;P&gt;But why it doesn't work with regular approach with "LOAD DISTINCT" ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 21:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OUT-OF-VIRTUAL-AND-OR-LOGICAL-MEMORY-allocationg-4096-MB/m-p/189609#M52424</guid>
      <dc:creator />
      <dc:date>2010-06-15T21:52:20Z</dc:date>
    </item>
    <item>
      <title>OUT OF VIRTUAL AND/OR LOGICAL MEMORY, allocationg 4096 MB</title>
      <link>https://community.qlik.com/t5/QlikView/OUT-OF-VIRTUAL-AND-OR-LOGICAL-MEMORY-allocationg-4096-MB/m-p/189610#M52425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, the fieldvalue() function just loads distinct field values without having to reference a source table. So if your source table is large, and your number of field values is somewhat smaller, it generally works faster to do the load that way.&lt;/P&gt;&lt;P&gt;As for why your original script would have such serious problems, I honestly have no idea. It certainly LOOKS correct to me. There's nothing technically wrong with the LOAD DISTINCT then LEFT JOIN approach that I'm aware of. I assume we're both missing something; I just can't see what.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jun 2010 21:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OUT-OF-VIRTUAL-AND-OR-LOGICAL-MEMORY-allocationg-4096-MB/m-p/189610#M52425</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-06-15T21:56:22Z</dc:date>
    </item>
  </channel>
</rss>

