This migration guide describes changes related to the Update Shop Statistics job.
The Job Update Shop Statistics can create high input/output-related load on the database with a large number of products. Restricting the statistical calculation to the groups that are necessary instead of calculating everything helps improve the performance. For this purpose, the reworked job pipeline allows for passing an optional attribute called GroupsToRun, which can specify the groups that will be calculated. A comma-separated list specifies the groups for which the statistical calculation needs to be done.
New behavior:
If the attribute GroupsToRun is added to the Update Shop Statistics job, calculation will only run for the groups that are added to the attribute value.
An incorrect value will result in the calculation of only the groups identifiable as an attribute value.
If none of the entered values can be identified or the value is empty, no group will be calculated.
If the attribute GroupsToRun is not configured in the Update Shop Statistics job, all groups will be calculated, just as it was before the change. This allows backward compatibility for all installations where performance can be neglected (e.g., preproduction systems).
Valid values are:
Product
CMS
Promotion
Order
The following example of the GroupsToRun attribute configuration will run statistical calculation for the order and CMS group only, excluding product and promotion.
Attribute Name: GroupsToRun
Attribute Type: String
Attribute Value: Order,CMS
No migration is required if the additional attribute is not used.