Patch: Attribute group data and swatch check scaling
What's inside
- getData() was being run inside of a loop on $groupColection, so it was moved a level above, on the attribute.
- isSwatchAttribute was moved into a separate loop by attributes.
Overall, for big collection load, it cut the time from 60 seconds to 25 seconds and the data returned is the same. Kudos to @aleksandrsm!
That's all there is to it! :)