Viewing 2 replies - 1 through 2 (of 2 total)
  • alabandit

    (@alabandit)

    I ran the script a few times in a row and it picked up from where it left off.

    Else try removing them from the original database once they are imported.

    but I really only just tried this script for the first time 5 minutes ago

    Put this onto a WAMP server on localhost where you can control the php.ini and up your maximum execution time as well, and/or just keep reloading the import page again and again….
    I was able to get it to do around 500 to 1000 customers with a max execution time of 120 until I changed my php.ini.

    That being said, when I was importing, it started to choke around 8450, and then failed at 8480 users.

    I think when it’s doing a select to see if the email exists, then it has to do a select to make sure the username is unique, that might be the problem; maybe those are database-intensive selects. (Around line 125 & 130.) Possibly using something more primitive than email_exists() might reduce the time…

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘memory issue importing customers’ is closed to new replies.