<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
    <title>Magento Issue Tracking</title>
    <link>http://www.magentocommerce.com/bug-tracking/</link>
    <description></description>
    <dc:language>en</dc:language>
    <dc:creator>MagentoCommerce</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
        <item>
        <title>View Issue #24982 / Extremely slow query</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=10622</link>
        <description><![CDATA[<strong>Posted:</strong> 2010-12-31 15:20:49<br/><strong>Category:</strong> Orders<br/><strong>Version:</strong> 1.4.1.1<br/><strong>Priority:</strong> high<br/><strong>Status:</strong> closed<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/141143/">colinmollenhour</a></strong><br/><br/># Query_time: 94.249761  Lock_time: 0.000170 Rows_sent: 20  Rows_examined: 74682762<br />
SET timestamp=1293761419;<br />
SELECT `e`.*, (SELECT count(*) FROM `sales_flat_quote_item` AS `quote_items`<br />
 INNER JOIN `sales_flat_quote` AS `quotes` ON quotes.entity_id = quote_items.quote_id AND quotes.is_active = 1 WHERE (quote_items.product_id = e.entity_id)) AS `carts`, count(`order_items2`.item_id) AS `orders` FROM `catalog_product_entity` AS `e`<br />
 LEFT JOIN `sales_flat_order_item` AS `order_items` ON order_items.product_id = e.entity_id<br />
 LEFT JOIN `sales_flat_order_item` AS `order_items2` ON order_items2.item_id = order_items.item_id GROUP BY `e`.`entity_id`,<br />
    `e`.`entity_id` HAVING (carts &gt; 0) LIMIT 20;<br/><br/><hr/>]]></description>
    </item>
    
                    <item>
        <title>RE: Extremely slow query</title>
        <description><![CDATA[<em>#1 / Comment by Magento Team</em><br/><br/>Thanks for your issue.<br />
<br />
Issue was confirmed but wouldn't fixed. This query doesn't use in current version of Magento. For getting information about products in shopping carts you may use Mage_Reports_Model_Mysql4_Quote_Collection.]]></description>
    </item>
            <item>
        <title>RE: Extremely slow query</title>
        <description><![CDATA[<em>#2 / Comment by Magento Team</em><br/><br/>This issue is fixed in Magento 1.5.1.0.<br />
Thank you for the report.]]></description>
    </item>
        </channel>
</rss>