public function __construct($resource = null) { /** * Preload attributes for EAV optimization */ $attributes = Mage::getSingleton('catalog/config')->getProductAttributes(); $attributes = array_merge($attributes, array('tax_class_id', 'tier_price')); Mage::getSingleton('eav/config')->preloadAttributes('catalog_product', $attributes); parent::__construct($resource); }