Thats a big file, and will take a fair bit of memory on the server.
You`ll probably end up having to upload the file to your server, and then write a script to open the file, and read it in line by line, and then inserting each line into the database as you go. Would be the most memory efficient way of doing it, although it would take a fair amount of time to run as thats a huge number of records to be inserted!
You'll need to add:
to your script to keep it running for that amount of time without timing out (although it's possible that the hosts settings may over rule that).PHP Code:set_time_limit(0) and ignore_user_abort()
I think your best bet would be to contact your host and get them to help you with it. Otherwise, you may need to split it into several smaller files, and then process each one.
What exactly is it thats 600mb? Is it a file containing every single retailer on Affiliate Window or similar, as thats a huge amount of data! Assuming each record is 1/2Kb thats 1,228,800 records. If that is the case it would be much better to download all the files separately, and then write a loop to read in each file and add it.
LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks