mardi 26 avril 2016

Laravel db insert still process when close browser

here is code in my insert route:

Route::get('addData',function(){

    $faker = \Faker\Factory::create();
    $normalBegin = time();
    for($i = 0;$i<2000;$i++){
        \DB::insert('insert into dist(id,num) values(null,:num)',[':num'=>$faker->numberBetween(1,10000)]);
    }
});

And when i execute it 1 or 2 seconds, i closed my browser. But i found that data is increasing. Can someone tell me why?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire