You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.
Calling $productService->updateBatch($products) from public function syncInventoryLevel(Nosto_Tagging_Model_Meta_Order $order) causes Magento to reload the product the inventory decreased for.
If an order contains 5 products, and these products are associated to 5 store views, the extension force Magento to reload ( $nostoProduct->reloadData($mageProduct, $store) ) 25 products + 5 api calls (Nosto_Operation_UpsertProduct::upsert), with performance issues: just to update the inventory.
The text was updated successfully, but these errors were encountered:
eperrotta
changed the title
Updating the inventory may lead to reload several products
Updating the inventory may lead to checkout performances issues
Nov 9, 2018
Calling
$productService->updateBatch($products)
frompublic function syncInventoryLevel(Nosto_Tagging_Model_Meta_Order $order)
causes Magento to reload the product the inventory decreased for.If an order contains 5 products, and these products are associated to 5 store views, the extension force Magento to reload (
$nostoProduct->reloadData($mageProduct, $store)
) 25 products + 5 api calls (Nosto_Operation_UpsertProduct::upsert
), with performance issues: just to update the inventory.The text was updated successfully, but these errors were encountered: