I have a large mysql result set which I insert into other tables as I loop through.
//Code
$result= mysqli_query($daffff, "select * from 0_suppliers");
while ($tran_pucha1we = mysqli_fetch_array($result)) {
//Several Inserts here
}
The result set has around 3000 suppliers and inside the loop I insert into 4 other different tables which makes the process time out.
What ways are available to handle such large result sets without timing out?