Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Updating the inventory may lead to checkout performances issues #453

Open
eperrotta opened this issue Nov 9, 2018 · 1 comment
Open

Comments

@eperrotta
Copy link

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.

@eperrotta 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
@fairlane
Copy link
Contributor

Thanks for reporting this @eperrotta. We will investigate if there's a way to speed up the inventory level update. This will most likely require some changes to both, the extension and in Nosto's backend as well so I cannot promise a quick resolution. Updating the inventory level can be switched off (https://github.com/Nosto/nosto-magento/wiki/Supplier-Cost-&-Inventory-Level#enabling--disabling-inventory-level-metadata) in case it causes too much performance issues

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants