Product attribute post-processor optimization
·
26 commits
to master
since this release
What's inside
- Rather than checking all attributes on each product, makes a list of attribute sets used in the current product array, and gets attributes for those specific set. This is more efficient since it is unlikely that a PLP has each item on a unique attribute set.
- Gathers attribute group data, looping over attribute sets/attributes, not including the products in the loop. Also added a break in the group loop, after the first group is found. This is more efficient, and within a single attribute set, an attribute can only be assigned to a single group.
- Moved appendWithValues after appendWithGroup, since values append actually has data specific to individual products
That's all there is to it! :)