3

We are seeing a new option in v2.3.5 "Synchronize with Catalog" and can read about it here. https://docs.magento.com/user-guide/configuration/catalog/inventory.html

But what does it do exactly? The explanation is ambiguous

Synchronize with Catalog: When set to Yes, inventory data is adjusted according to the catalog changes (such as product removals, product SKU changes, and product type changes) and keeps consistency between inventory and catalog. Options: Yes / No

Question: Magento2 MSI v2.3.5 and up: What does "Synchronize with Catalog" do exactly?

What are the suggested values for a normal shop using MSI? It defaults to NO when I would expect YES

enter image description here

1 Answer 1

1

Magento Inventory keeps track of product stocks in the \Magento\Inventory\Model\SourceItem entity. With "Synchronize with Catalog" enabled, it keeps these entities' updated via plugins on \Magento\Catalog\Model\ResourceModel\Product::save, \Magento\Catalog\Model\ResourceModel\Product::delete and more.

With "Synchronize with Catalog" disabled, Inventory SourceItems are only kept updated via Message Queues (that might be run by your cron).

2
  • So is it recommended or not? Mar 11, 2021 at 8:55
  • It depends on your business case. With Sync enabled, stock will be synchronized "just-in-time" and uses CPU and IO at this time. With Sync disabled, those updates can be postponed until the next cron run (if you use the MySQL adapter). I'd say: try the different modes on your staging environment and see what works best for your store.
    – aeno
    Mar 13, 2021 at 17:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.