optimisation de l'operation upgrade