Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Save product by its id in magento 2.
What is the best practice in use ?
Repository is the best way to save the product. Because of \Magento\Catalog\Api\ProductRepositoryInterface::save() has future, in future will be more use where Magento\Catalog\Model\Product::save() will fully deprecated in near future.