Magento 2.3 cleanest way to remove MSI to speed up store
-
15-03-2021 - |
Question
My question is simple. What is the cleanest way to speed up Magento 2.3.x by removing MSI.
In my opinion this is a B2B feature and most small merchants won't be interested in this feature. IMHO it is adding MySQL overhead.
Has anyone had any success disabling this without causing issues?
Solution
I feel that the best idea to remove the package using composer, use composer replace tag for removing the MSI modules.
Create a custom module on this module's composer.json remove the MSI module like this ways
{
"name": "vendor/magento2-replace-inventory",
"version": "1.0.0",
"replace": {
"magento/module-inventory": "*",
.....
You can use Jisse Reitsma
module https://github.com/yireo/magento2-replace-inventory for this purpose.
If you already install & enable ALL MSI modules, then first you have disabled them one by one using php bin/magento module: disable {VendorName}_{ModuleName}
,
Then remove the package using composer
OTHER TIPS
I really recommend to rather apply performance patches which address all the known performance problems with MSI than disable it. The list of patches could be found here - https://github.com/magento/inventory/wiki/Performance-Patches.
Magento 2.3.3 with MSI + 2 additional patches shows better checkout performance than the one without MSI.