I've created a command which saves a number of products using
// \Magento\Catalog\Api\Data\ProductInterface $product->save()
// \Magento\Catalog\Api\ProductRepositoryInterface $productRespository->save($product)
Is there a way of telling the magento 2 api to only save if the product doesn't exist? I have almost 500,000 products which I don't want to re-import each time.
Just checking this is the correct way to do it too - because its SUPER slow.