title: Loading Thousands of Codes to Map to a Shopping Cart Rule in Magento
body: <p>I've been looking at the <code>salesrule_coupon</code> table, and I've discovered that I can map many coupon codes to a single rule, if the rule itself is of type 'Auto.' This is highly convenient as my client needs us to sync the codes periodically with a feed of data.</p>
  
  <p>So in loading in these thousands of codes (using a custom module &amp; direct SQL calls) they load just fine, and I can test and verify that many of them work.</p>
  
  <p>However in working my way down the list of these codes, they stop working. The first 30 or so will work just fine, but thereafter, Magento says that the codes are invalid.</p>
  
  <p>I'm still debugging this, and I'll post updates if I discover anything... but I've tried and experienced this with two separate price rules now. One rule crapped out at the 31st code, the second at the 39th.</p>
  
  <p>What's really strange is that, if I change these codes to point to a different rule (one with less than 30 codes) they're recognized and accepted. Nothing else changed, that I can determine.</p>
  
  <p>Any ideas on how to proceed here? Has anyone attempted this before? This is an interesting one.</p>