HOW TO DO RE-INDEXING VIA COMMAND LINE IN MAGENTO 2?

Re-indexing using admin panel is ideal for Magento 2 stores with small to medium-sized inventories. However, if you own a Magento 2 based store with a large inventory size, re-indexing via admin panel can be painful for you. In such situation, only command line re-indexing method would work best for you.

To do re-indexing in Magento 2, you need to run the following commands:

• Re-indexing Root Directory:

php bin/magento indexer:reindex
• Re-indexing root/bin directory:

php magento indexer:reindex
• Magento 2 Single Re-indexing Command:

php bin/magento indexer:reindex indexer_name
You will get the indexer name from the following command:

php bin/magento indexer:info
The command line method is considered to be more efficient than admin panel approach. It will execute indexing in a perfect way.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

the advantages and disadvantages of using subdomains and subdirectories in internationalization

Next Post

WHY DO MAGENTO STORE OWNERS NEED PERFORMANCE OPTIMIZATION?

Related Posts

Create Custom Header for magento

Create Custom Header for magento <reference name="header">     <block type="page/header" name="header">         <action method="setTemplate"><template>cms/headers/about_us.phtml</template></action>     </block> </reference> app/design/frontend/base/default/template/cms/headers/about_us.phtml and has the…
Read More