In a PHP code you have a series of consecutive UPDATES (could be more)
$sql= "UPDATE SENTENCIA X";
$sth = $BD->prepare($sql);
$sth->execute();
$sql= "UPDATE SENTENCIA Y";
$sth = $BD->prepare($sql);
$sth->execute();
$sql= "UPDATE SENTENCIA Z";
$sth = $BD->prepare($sql);
$sth->execute();
Is there any way to optimize the process of this execution and what would that form be?