On Fri, Nov 19, 2010 at 11:59 AM, Renato de Freitas Freire
<renat...@gmail.com> wrote:
> Yeah..
> my table is near 1gb...
> Something like 800mb or a little more...
> Im doing something like this:
> $data = $this->Model->find('all',array('conditions' => array('Model.ok' =>
> 1)));
> foreach($data as $row) {
>    foreach($row as $key => $value) {
>          // here i call phpexcel (or the helper) to write the file.
>    }
> }
> My action is pretty much this...
> Do you think if I break this process into pages can make it lighter?

Yes, of course. That's what paging/limit is for. That should
definitely be the approach for any DB over a few MB.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to