while ($query_count--) {
$id = mt_rand(1, 10000);
$world = (yield from $my->query("SELECT id,randomNumber FROM World WHERE id = $id"))[0];
$world['randomNumber'] = mt_rand(1, 10000);
$update .="UPDATE World SET randomNumber = {$world['randomNumber']} WHERE id = $id;";
$arr[] = $world;
}
yield from $my->query($update);
When using multiqueries.
The update fail. https://travis-ci.org/TechEmpower/FrameworkBenchmarks/jobs/608620366#L1423