Magento 2.3 – Cleanest Way to Remove MSI to Speed Up Store

magento2.3msiperformance

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?

Best Answer

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": "*",
    .....

OR 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

Related Topic