Tag Archives: Magento collection set page size not working

Magento collection set page size


Magento collection set page size : You can set page size in magento as below.


Magento collection set page size Syntax

$collection = Mage::getModel('module_name/model_name')
->getCollection()
->setPageSize('1');

The above filter will select only one record from the collection.