Jump to content

I need an alternative to set_time_limit


btray77

Recommended Posts

I need to do something other than use set_time_limit(); 

 

I still get timeouts on huge database imports.  (Command line is not available, and the data feed is not a standard format, so there is no real way of doing mysql's CSV or XML import command)

 

I am importing about 100,000 products, and images from a datafeed.  I have NO problems if I don't have to download the images, but the time that it takes to download the images causes the system to timeout.  (and it's not from a browser timeout issue, I've got it sending data to the screen each time it does an action)

 

 

I was thinking about possibly using ajax to call the script to run 1 query at a time, but I'm not sure how to do this. 

 

1. Anyone know of a tutorial on something like this?  (I have jquery loaded)

2. If this is not a "good" way, can you give me an idea of how you would do this?

 

Thank you

 

-Brad

Link to comment
Share on other sites

If you just want to import sql file to mysql database,

try bigdump.

 

You need to upload the sql file to your server.

then configure the username, pwd, host and the database name that in the script.

 

It is useful to import large database file.

Last time I was using phpmyadmin to import but it fails, so I switch to bigdump now.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.