In my live website, i need to process and insert very huge amount of data coming through edmunds api. I have 3 tables viz. makes, models, and trims. By connecting with edmunds api, I am getting makes data. Under each makes, I am getting models. And consequently under each model, I will have various trims. I have no problem with makes and models. But trims data is causing a lot of problems. Actually there are more than 2000 rows that need to be inserted in database in one operation.
But I can get all these data for makes and models only when i disable the code for trims. If I enable my code for trims section then makes and models also don't work.
But very surprisingly, all the code for makes, models and trims work on my localhost. I have already used
ini_set('max_execution_time', 600);
in my script to avoid script execution timeout.
So please help me how can I be able to process and insert all the data into my database while working on live site. Thanks in advance