Hi
I have the problem with memory, while generating website.
My task is to produce simple site with results. But the problem is that, generation of
1000 rows
takes about 400MB RAM, and this cannot be accepted. My application is likely to handle
2000 rows, and I want to avoid extending memory. So i'm looking for other solutions.
every 100 rows take approximately 30MB of memory.
At first i divided the whole collection into smallest one's (collection of
collections), and after every small collection i ran garbage collector. Then i found
out that it didn't work. It only works, when page generation process is completed. In
my opinion it shouldn't be in the way like this, or i do sth wrong.
I have to solve that problem, somehow. I don't want to divide results in pages
Any help would be appreciated
Best regards
Darek
I have sth like that
#foreach ($result in $list)
#parse("search-results.vtl")
#end
and peace of search-results.vtl:
#set ($column="last")
#if ($columnList.containsKey($column))
<td>$result.getMember().lastName</span></td>
#end
#set ($column="first")
#if ($columnList.containsKey($column))
<td>$result.getMember().firstName</a></span></td>
#end
#set ($column="second")
#if ($columnList.containsKey($column))
<td><span class="value">$!result.getMember().secondName </span></td>
#end
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]