title: Magento - load only configurable products
body: <p>I have the following code:</p>
  
  <pre><code>$_productCollection = $this-&gt;getLoadedProductCollection();
  
  foreach ($_productCollection as $_product)
  {
    if ($_product-&gt;_data['type_id'] == 'configurable')
    {
      ...
    } 
  }
  </code></pre>
  
  <p>While it does what it's supposed to do, it greatly slows down page load time. Is it possible to load only configurable products and remove the check for 'configurable'? The store has 12000 products, about 700 are configurable and the rest are child simple products.</p>
  
  <p>I found the following code which returns all configurable products. I need only the products within the current category:</p>
  
  <pre><code>$collectionConfigurable = Mage::getResourceModel('catalog/product_collection')
                  -&gt;addAttributeToFilter('type_id', array('eq' =&gt; 'configurable'));
  </code></pre>