I’m looking for the most effective way to get configurable product attribute values on product listing pages, for example color values for a product (from assigned simple products)
Currently looking into utilising catalog_product_flat_n table for this purpose, but perhaps there is an easier or more correct approach to do this? I’m trying to avoid using
$product->getTypeInstance()->getConfigurableAttributesAsArray()
on every product, as this will be very slow
Thanks
I had the same issue, so I created my own resource model for getting data from flat tables, look into code below
Hope it will be helpful for you