How to update indexes in Magento 2! Optimize Magento performance
Indexing in Magento is the process of data conversion. All changes concerning products, categories, prices, catalog search index must be updated. Indexing is carried out with the purpose of improvement of webstore productivity.
Magento stores significant amount of information in many database tables. To optimize site performance, Magento accumulates information with indexes. If you change any product prices Magento should reindex all prices so that the changes are displayed on the website.
If you don’t do indexing, Magento must calculate all changes for each page on the move according basket pricing rules, group prices, discounts, differential pricing etc. Page loading would take considerable time, which could lead to a refusal to purchase.
Magento Index Management
In Magento 1 you start indexing right from admin panel. But if your store rules by out-of-box Magento 2 you can’t do it from admin. So you should use some third party extension or you can the command line to trigger reindexing.
Reindexing through the admin panel
If you installed reindexing extension you can start indexing from admin panel. You can install extension just in two steps. To trigger reindexing you should do next things.
- Log in to your Magento admin panel
- Go to System > Tools > Index Management
- Select the categories you want to reindex.
- From the Action drop down list there select “Update Now”
- Click “Submit”
Neklo Advanced reindexer gives the possibility to make a schedule of indexing.
If you don’t want use extension you can trigger indexing from command line.
First of all you can star full data reindex. To do this use the follow command
php magento indexer:reindex
If you need update only some specific index you should use the next command
magento indexer:reindex [indexer]
Put the suitable indexer name to update needed information
Magento uses next indexers for data:
Do not forget to update the indexes in Magento on time. If your forget to update indeсes may slow down the entire system.