Hi,
I am using findAll() to retrieve about 7500 records. My current PHP
setup is such that this fails with an out of memory error.
So I tried this:
$conditions = null;
$fields = null;
$order = null;
$page = 0;
$limit = 200;
$recursive = null;
while( 1 ) {
echo "<pre>$page</pre>";
$allTests = null;
$allTests =
$this->Test->findAll($conditions,$fields,$order,$limit,$page,$recursive);
$this->set('data', count($allTests) );
echo "<pre>";echo count($allTests);echo "</pre>";
if( count($allTests) ==0 ) {
break;
}
$page++;
}
and this too runs out of memory. It works OK for a few 'pages' worth
($page can get as high as about 12 before memory is exhausted).
It seems that memory is being consumed by findAll() somewhere along the
line.
My DEBUG level is set to 2 so caching of queries should not be
happening, should it?
Any ideas?
Allan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---