How to Update Commerce Product Programatically $product_load = commerce_product_load(456);

 $product_load-&gt;uid = $GLOBALS['user']-&gt;uid; 

 $product_load-&gt;example[LANGUAGE_NONE][0]['tid'] = 123;

 commerce_product_save($product_load);


As I am doing this it is not updating commerce product and takes lot of time to load the page.
You may have better luck using entity metadata wrappers' ->set() and ->save() functions.