Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Added info about mview #4683

Merged
merged 4 commits into from
Jun 14, 2019
Merged

Added info about mview #4683

merged 4 commits into from
Jun 14, 2019

Conversation

VitaliyBoyko
Copy link

@VitaliyBoyko VitaliyBoyko commented Jun 5, 2019

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.

@devops-devdocs
Copy link
Collaborator

An admin must run tests on this PR before it can be merged.

@rogyar rogyar self-assigned this Jun 5, 2019
@rogyar rogyar added 2.2.x 2.3.x Magento 2.3 related changes Major Update Significant original updates to existing content Technical Updates to the code or processes that alter the technical content of the doc labels Jun 5, 2019
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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

@jeff-matthews jeff-matthews removed the Technical Updates to the code or processes that alter the technical content of the doc label Jun 5, 2019
@dobooth dobooth self-assigned this Jun 14, 2019
@dobooth
Copy link
Contributor

dobooth commented Jun 14, 2019

running tests

@dobooth dobooth merged commit 343276e into magento:master Jun 14, 2019
@ghost
Copy link

ghost commented Jun 14, 2019

Hi @VitaliyBoyko, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
2.2.x 2.3.x Magento 2.3 related changes Major Update Significant original updates to existing content Partner: Atwix partners-contribution PR created by Magento partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants