Skip to content

Instantly share code, notes, and snippets.

@fballiano
Last active August 29, 2015 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fballiano/adb979fccc4fd21ab520 to your computer and use it in GitHub Desktop.
Save fballiano/adb979fccc4fd21ab520 to your computer and use it in GitHub Desktop.
Duplicate primary on catalog_product_index_price_tmp
+++ b/app/code/core/Mage/Index/Model/Resource/Abstract.php
@@ -176,6 +176,7 @@ abstract class Mage_Index_Model_Resource_Abstract extends Mage_Core_Model_Resour
if ($from === $to) {
$query = $select->insertFromSelect($destTable, $columns);
+ $query = str_replace("INSERT INTO", "INSERT IGNORE INTO", $query);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment