Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 2 of 2
Memory leak при переборе большого количества товаров
 
devromans
Jr. Member
 
Avatar
Total Posts:  18
Joined:  2012-04-05
 

function productCallback($args)
{
    $product 
Mage::getModel('catalog/product');
    
$product->setData($args['row']);
    echo 
$args['arg1'"\n";
    echo 
$product->getSku() . ': ' $product->getName() . "\n";
}

$products Mage::getModel('catalog/product')->getCollection()
                    ->
addAttributeToSelect('sku')
                    ->
addAttributeToSelect(array('name''short_description''description''price''image''status''manufacturer''url_path'), 'inner');

Mage::getSingleton('core/resource_iterator')->walk($products->getSelect(), array(array($this'productCallback')), array('arg1' => '===='));

Надеюсь вам поможет

 
Magento Community Magento Community
Magento Community
Magento Community
 
akoval
Member
 
Total Posts:  50
Joined:  2011-03-19
 

Спасибо большое!

Попробую в ближайшее время и сообщу результаты…

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 2 of 2