Clearing Magento Model instance
As we all know, it’s always better to use collections in Magento than to instantiate model inside a loop. Database hit is one of the most expensive operations you can do. You should always try to make one query in order to get the collection and then loop through it’s elements instead of loading and […]