<?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 AW:Re: For each..next -loop and out of memory in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169599#M712673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harri,&lt;/P&gt;&lt;P&gt;I would strongly recommend you to switch to a 64-bit enviroment. QV holds all its data in memory. And with any 32bit-OS there is definitely a RAM-limit (clearly &amp;lt;4GB), depending on different parameters. For details please refer to other threads, you will find many with this topic.&lt;/P&gt;&lt;P&gt;As you told your data will grow rapidly. Let's say to 14*8 Mio rows. You will likely have not only loading issues, but also an issue with your endusers. It can be very uncomfortable when your and/or your endusers demand is growing and your infosystem can't keep up with it.&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jan 2011 11:29:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-14T11:29:49Z</dc:date>
    <item>
      <title>For each..next -loop and out of memory</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169596#M712670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have 2 databases with identical table with many columns. Then it would be nice to read these 2 tables with for each..next-loop,&lt;/P&gt;&lt;P&gt;because just the connect string is different. Tables have about 14 million rows in both database.&lt;/P&gt;&lt;P&gt;Version is 32-bit 9.00 SP4. (I can't use 64-bit version, no ODBC for 64 bit in this environment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I read these tables with "for each..next" -loop. I get out of memory error when just about 9 million rows are readed from the first db.&lt;/P&gt;&lt;P&gt;If I read these tables without loop (I just copy/pasted load statement and edited connect string) then I can read all the rows without any problems. 14 million + 14 million.&lt;/P&gt;&lt;P&gt;Have you also had weird memory hog problems with "for each..next" -loop. Any solutions?&lt;/P&gt;&lt;P&gt;It would be nice to use loop with identical loading phases. but now I can't use it with large tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time,&lt;/P&gt;&lt;P&gt;Harri&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 09:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169596#M712670</guid>
      <dc:creator />
      <dc:date>2011-01-14T09:14:35Z</dc:date>
    </item>
    <item>
      <title>For each..next -loop and out of memory</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169597#M712671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Harri&lt;BR /&gt;&lt;BR /&gt;why do you need for each..loop?&lt;BR /&gt;&lt;BR /&gt;why don't you want to load one by one table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 10:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169597#M712671</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2011-01-14T10:00:23Z</dc:date>
    </item>
    <item>
      <title>For each..next -loop and out of memory</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169598#M712672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to use loop- becaus now we have 2 databases, but in the future 8 databases.&lt;/P&gt;&lt;P&gt;Then it is simplier to manage loading script, because load/select lines are only once in the script.&lt;/P&gt;&lt;P&gt;Easier to maintain etc.&lt;/P&gt;&lt;P&gt;Yours, Harri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 10:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169598#M712672</guid>
      <dc:creator />
      <dc:date>2011-01-14T10:54:39Z</dc:date>
    </item>
    <item>
      <title>AW:Re: For each..next -loop and out of memory</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169599#M712673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harri,&lt;/P&gt;&lt;P&gt;I would strongly recommend you to switch to a 64-bit enviroment. QV holds all its data in memory. And with any 32bit-OS there is definitely a RAM-limit (clearly &amp;lt;4GB), depending on different parameters. For details please refer to other threads, you will find many with this topic.&lt;/P&gt;&lt;P&gt;As you told your data will grow rapidly. Let's say to 14*8 Mio rows. You will likely have not only loading issues, but also an issue with your endusers. It can be very uncomfortable when your and/or your endusers demand is growing and your infosystem can't keep up with it.&lt;/P&gt;&lt;P&gt;Regards, Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jan 2011 11:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169599#M712673</guid>
      <dc:creator />
      <dc:date>2011-01-14T11:29:49Z</dc:date>
    </item>
    <item>
      <title>For each..next -loop and out of memory</title>
      <link>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169600#M712674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harri,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;May I ask how did you created that For Each Next loop especially with the connection string.&lt;BR /&gt;I'm trying the same thing. We have a SQL Server and 6 databases that are all the same tables and columns.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I failed to create a loop so that both databases be read.&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Thx for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 21:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-each-next-loop-and-out-of-memory/m-p/169600#M712674</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2012-05-23T21:10:19Z</dc:date>
    </item>
  </channel>
</rss>

