-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Added info about mview #4683
Added info about mview #4683
Conversation
An admin must run tests on this PR before it can be merged. |
the indexer group. | ||
* The `subscriptions` node is a list of tables for tracking changes. | ||
* The `table` node defines the certain table to observe and track changes. The attribute `name` is a name of an observable table, the attribute `entity_column` is an identifier column of entity to be re-indexed. So, in case of `catalog_category_product`, whenever one or more categories is saved, updated or deleted in `catalog_category_entity` the method | ||
execute of `Magento\Catalog\Model\Indexer\Category\Product` will be called with argument `ids` containing ids of entities from column defined |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
execute of `Magento\Catalog\Model\Indexer\Category\Product` will be called with argument `ids` containing ids of entities from column defined | |
the `execute` method of `Magento\Catalog\Model\Indexer\Category\Product` will be called with argument `ids` containing ids of entities from column defined |
* The `subscriptions` node is a list of tables for tracking changes. | ||
* The `table` node defines the certain table to observe and track changes. The attribute `name` is a name of an observable table, the attribute `entity_column` is an identifier column of entity to be re-indexed. So, in case of `catalog_category_product`, whenever one or more categories is saved, updated or deleted in `catalog_category_entity` the method | ||
execute of `Magento\Catalog\Model\Indexer\Category\Product` will be called with argument `ids` containing ids of entities from column defined | ||
under `entity_column` attribute. If indexer type is set to Update on Save the method being called right away after the operation if it set to Update by Schedule |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
under `entity_column` attribute. If indexer type is set to Update on Save the method being called right away after the operation if it set to Update by Schedule | |
under `entity_column` attribute. If indexer type is set to "Update on Save", the method is called right away after the operation. If it's set to "Update by Schedule"... |
The table contains the `version_id` auto-increment column and `entity_id` column that contains identifiers of entities to be re-indexed. | ||
For each `table` node the framework automatically creates MYSQL AFTER triggers for each possible event (INSERT, UPDATE, DELETE). | ||
|
||
For the table `catalog_category_entity` will be created triggers with the following statements: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the table `catalog_category_entity` will be created triggers with the following statements: | |
For the table `catalog_category_entity` triggers will be created with the following statements. |
|
||
``` | ||
|
||
The method `Magento\Framework\Mview\ViewInterface::update` responsible for handling records in the changelog. The method is being called by CRON and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method `Magento\Framework\Mview\ViewInterface::update` responsible for handling records in the changelog. The method is being called by CRON and | |
The method `Magento\Framework\Mview\ViewInterface::update` is responsible for handling records in the changelog. The method is being called by CRON and |
``` | ||
|
||
The method `Magento\Framework\Mview\ViewInterface::update` responsible for handling records in the changelog. The method is being called by CRON and | ||
it defines ID's to be re-indexed from the change log by last applied `version_id` and call the method `execute` for each particular indexer with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it defines ID's to be re-indexed from the change log by last applied `version_id` and call the method `execute` for each particular indexer with | |
it defines IDs to be re-indexed from the change log by last applied `version_id` and calls the `execute` method for each particular indexer with IDs as an argument |
running tests |
Hi @VitaliyBoyko, thank you for your contribution! |
Purpose of this pull request
This pull request (PR) extends information about indexing, adds information about mview.xml.
Affected DevDocs pages
whatsnew
Added information about indexing and the
mview.xml
file.