Ticket #379 (closed defect: fixed)
Memory Exhausted while processing a large table
| Reported by: | prakash.ved.v@… | Owned by: | hans |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3.1 |
| Component: | Runtime (PHP5) | Version: | 1.2.1 |
| Severity: | normal | Keywords: | memoryerror bug largetable |
| Cc: |
Description
I have a table with close to 5000 records, to process them I have written a small application thats suppose to run as a cron job. After processing 1500 records it fails with this error message
PHP Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 1177 bytes) in /usr/home/project/e4s-demo/lib/symfony/vendor/creole/drivers /mysql/MySQLResultSet.php on line 57
Each Record size < 128 KB
I have also set all vars to null after use and unset them too, but no use. I think the problem is with Propel/Creole, I think it cannot handle large tables efficiently. On the other hand if I issue MySQL native commands it works fine. Increasing PHP memory size is a no solution.
Thanks and Regards

