I have a form where a user enters a bunch of x/y coordinates. I am modeling a freezer.
Freezers have 1-N racks, each rack has 1-N boxes, and each box has 1-N grids.
I have a bunch of for loops that look sort of like this in the controller:
for($i = 0 ; $i < $numracks ; $i++){
$rack = new Rack();
$rack->assign(array(...));
$rack->create();
for($j = 0 ; $j < $numboxes ; j++){
$box = new Box();
$box->assign(array(...));
$box->create();
for($k = 0 ; $k < $numgrids ; $k++){
$grid = new Grid();
$grid->assign(array(...));
$grid->create();
}
}
}
And php is timing out after 30 seconds. Is there some way for me to spin this block of code off into its own thread in Phalcon? I don't particularly want to increase the timeout time... rumracks is on the order of 10, and boxes and grids are like 100 so this is supposed to create hundreds of thousands of database objects :(