On 4/8/2011 3:18 PM, ProFire wrote:
Is there a way to clear the memory?
Does anybody also experience a somewhat similar issue? where by each
Model::Save results in an increase of memory?
You can't control memory in PHP.
I'd try different combos of max_execution_time[1] and memory_limit[2].
However I don't think this will help you much with the huge data sets
you've mentioned.
Another approach will be to split you data into blocks of n size and
save it using Model::saveAll($data).
HTH.
[1]
http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
[2] http://www.php.net/manual/en/ini.core.php#ini.memory-limit
P.S. Providing a DB schema and some code would help everyone to better
understand your situation.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php