Allowed memory size of 134217728 bytes exhausted (tried to allocate 43 bytes)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 43 bytes)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 43 bytes)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 43 bytes)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 43 bytes)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 43 bytes)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 43 bytes)
Allowed memory size of 134217728 bytes exhausted (tried to allocate 43 bytes) Allowed memory
Share
A CakePHP implementation of josh.trow’s solution:
Reduce the size of
$limitas needed to accommodate your memory constraints. You’ll probably also need to increase themax_execution_timeconfiguration variable in php.ini, as cycling through 1.2M records will take awhile.NB: I definitely don’t recommend this solution unless you need to perform this operation frequently and without human intervention.
NB2: I should note as well that Cake lacks the capability (natively) to aggregate many rows in a single
INSERT, so this solution will perform as many queries against your MySQL DB as there are rows in your MSSQL DB. Using Cake for this is entirely unnecessary, and my solution should be considered nothing more than a proof of concept.