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 a 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 to 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 the 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 Advanced Reindexer 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 to use an extension you can trigger indexing from the command line.
First of all, you can star full data reindex. To do this use the following command
php magento indexer:reindex
If you need to 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 you forget to update indeсes may slow down the entire system.