Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7851807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:16:10+00:00 2026-06-02T19:16:10+00:00

Is it possible to update product attributes without triggering reindex? As known, the load()/setData()/save()

  • 0

Is it possible to update product attributes without triggering reindex?

As known, the load()/setData()/save() scenario triggers reindex.

I’ve looked into ‘updateAttributes’ method in ‘Mage_Catalog_Model_Product_Action’ but I think it also triggers product reindex.

/**
     * Update attribute values for entity list per store
     *
     * @param array $productIds
     * @param array $attrData
     * @param int $storeId
     * @return Mage_Catalog_Model_Product_Action
     */
    public function updateAttributes($productIds, $attrData, $storeId)
    {
        $this->_getResource()->updateAttributes($productIds, $attrData, $storeId);
        $this->setData(array(
            'product_ids'       => array_unique($productIds),
            'attributes_data'   => $attrData,
            'store_id'          => $storeId
        ));

        // register mass action indexer event
        Mage::getSingleton('index/indexer')->processEntityAction(
            $this, Mage_Catalog_Model_Product::ENTITY, Mage_Index_Model_Event::TYPE_MASS_ACTION
        );
        return $this;
    }

The the code under ‘// register mass action indexer event’ seems to trigger indexer action.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T19:16:11+00:00Added an answer on June 2, 2026 at 7:16 pm

    I found the way to update the attributes of a product without triggering reindex.

    The main idea is the following: if you do update operations on the Model of the product, reindex is triggered, but if you do those operations on the Resource, that specific operation is done without reindex.

    For example:

    /**
    * This method updates product attributes then triggers reindex
    */
    Mage_Catalog_Model_Product_Action->updateAttributes($productIds, $attrData, $storeId);
    
    /**
    * This method updates product attributes but doesn't trigger reindex
    */
    Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Action->updateAttributes($productIds, $attrData, $storeId);
    

    where:

    • $productIds – an array with the products Ids
    • $attrData – an array having the keys as attribute name and values as attribute values
    • $storeId – store id of the product’s assigned store (in case your product is assigned to multiple categories in different stores);

    If the attribute is global Mage_Core_Model_App::ADMIN_STORE_ID can be used

    Cheers!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to update a directory to a specific revision without cloning the
I have the following scenario in mySql, is it possible to update the values
LOAD XML LOCAL INFILE 'file1.xml' INTO TABLE my_table ROWS IDENTIFIED BY '<product>' Is it
Is it possible to do something like this in SubSonic3? _db.Update<Product>() .Set(UnitPrice) .EqualTo(UnitPrice +
Is it possible to update a different ODBC database from withing a SQL Server
Is it possible to update the same view with new data? Using UPDATE after
Is It Possible to update any trigger in Information schema?
Is it possible to update first row and with WHERE clause. I Tried: UPDATE
Is is possible to update the text 'changethis' in below div using jquery ?
If I try to implement this simple-as-possible example: Update Content with AJAXRefreshRequest it does

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.