<?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 #10915 / Mysql error for too many tables in a join when sav</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=5207</link>
        <description><![CDATA[<strong>Posted:</strong> 2009-02-11 18:04:13<br/><strong>Category:</strong> Product<br/><strong>Version:</strong> 1.2.1<br/><strong>Priority:</strong> normal<br/><strong>Status:</strong> closed<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/1662/">burleyb</a></strong><br/><br/>Steps to Reproduce:<br />
1- Add at least 61 websites to your installation<br />
2 - Try to save a product<br />
<br />
Results:<br />
You will receive a mysql error:<br />
General error: 1116 Too many tables; MySQL can only use 61 tables in a join<br />
<br />
<br />
Analysis:<br />
I found that the function applyAllRulesForDateRange in<br />
app/code/core/Mage/CatalogRule/Model/Mysql4/Rule.php saves rules for every website by joining in a table for every website.  This reaches mysql's limit for joins on my platform.  This is 61 for me, but I believe this varies by mysql version and 64 vs. 32 bit.  I fixed it by only doing the refresh on websites that the product is assigned to.  This obviously has the same limit if you assign a product to 61 websites, but works for me for now.<br />
<br />
Also in that file the function removeCatalogPricesForDateRange creates a query for inserting into catalogrule/affected_product that never gets executed.<br/><br/><hr/>]]></description>
    </item>
    
                    <item>
        <title>RE: Mysql error for too many tables in a join when sav</title>
        <description><![CDATA[<em>#1 / Comment by Magento Team</em><br/><br/>Hello burleyb,<br />
<br />
This issue was fixed. Please check the latest Magento release at http://www.magentocommerce.com/download/<br />
<br />
Thank you.]]></description>
    </item>
        </channel>
</rss>