improve performance when saving Product attributes