Change-set detection
Compared to Pacemaker Community Edition, the Pacemaker Professional Edition contains a
change-set detection feature.
-
The
change-setconfiguration is a simple array with the attribute names as values -
It can get configured individually for each entity, e.g., for the entity
catalog_product_entity
Configuration
| Option | Default | Description | ||||
|---|---|---|---|---|---|---|
|
Activate/deactivate the Change-set detection
|
{
"change-sets": {
"catalog_product_entity": {
"type_id": null,
"updated_at": null,
"has_options": null,
"attribute_set_id": null,
"required_options": null
}
}
}
If the value has to get converted to a specific type, e.g. an integer, before it should get compared against
the one in the database.
-
It is also possible to specify the type as value
Example
The change-set configuration for the entity catalog_category_product only tries to detect changes of
the position attribute, whereas the position attribute must get defined of the type integer.
- To override the default configuration, a snipped with the appropriate changes of the change-set configuration can get added:
<magento-install-dir>/app/etc/configuration/change-sets.json{
"change-sets": {
"catalog_category_product": {
"position": "integer"
}
}
}
Console
The change-set detection can be activated when calling the corresponding import command.
Example
- To enable the
change-setoption, add the--use-change-set=trueparameter when calling the import:
vendor/bin/import-pro import:products --cache-enabled=true --use-change-set=true