Dump big rows using CI return error memory limit - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Dump big rows using CI return error memory limit (/showthread.php?tid=69829) |
Dump big rows using CI return error memory limit - plonknimbuzz - 01-22-2018 PHP Code: <?php my database.php PHP Code: $active_group = 'default'; i want to dump all my rows (180k++ rows) for several purpose (like migration, etc). But i always get memory_limit error. So i create 2 method to compared my problem: test_ci = fatal error memory_limit blabla test_native = 180k++ NOTE: Quote:1. in this demo i just try to count rows to simplify the demo code. But in the real case i have have complex script to parse the result. i tried to googling this for an hour but still not get any luck. did i miss something? RE: Dump big rows using CI return error memory limit - InsiteFX - 01-23-2018 You would need to dump it out with phpMyAdmin. You could then read and write out using CodeIgniter in chunks. RE: Dump big rows using CI return error memory limit - php_rocs - 01-23-2018 While I agree with InsiteFX, my question is...did you check the PHP and CI error logs to see if you could get more information? |