As the other posters have said your query is probably trying to pull too much data back, why don't you raise the memory limit in cake until you don't get a fatal error, then you can see what queries cake has been trying to run.
Chances are that Cake is trying to pull in data from lots of associations so you can get around this by using something like $this-> {$modelClass}->recursive = -1; or unbinding unnecessary models. Assuming your server config will let you change the allowed memory, you can do it within Cake by adding something like: define ('MAX_MEMORY_LIMIT', '64M'); in app/config/core.php John On Apr 30, 6:38 pm, "Benedikt R." <bened...@rossgardt.de> wrote: > Hey! > > I am currently building an app that should be able to parse some > tables with bank codes. The database table contains about 25,000 > entries. > > When I try to request some data ($this->ControllerObj->find > (conditions)) the server shouts out: > Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to > allocate 37 bytes) in /usr/www/users/blzbak/cake/libs/model/ > datasources/dbo/dbo_mysql.php on line 643 > > Cake doesn't throw an error, when I set ANY LIMIT (either 0 or > 1000000000000000). > > Someone knows, what all this is about? > > Thank you, > Benedikt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---