0

I've got a custom script that automatically import a lot of products at once.

I've seen here and there that it is a huge performance improvement to disable indexing when mass importing products.

My questions are:

  • Is that sentence true ?
  • What are the pros / cons of disabling the indexing before importing ?

1 Answer 1

1

Pros:

  • it will be faster because it does not index each product at a time.

Cons:

  • you won't see your changes real time. You will have to build the indexes manually when you are done.

Simple as that.
I say you should disable it. It's worth it.

4
  • What about using setIsMassupdate(true) on the products ? Is there any difference with "setting index to manual / import / setting index to update on save" ? Sep 26, 2016 at 14:44
  • I have no idea. I would suggest to disable the automatic indexing to avoid any other issues and questions that might appear. Specially if it's a custom script. I think it's a good trade. Import what you have to import and reindex when you are comfortable with the result.
    – Marius
    Sep 26, 2016 at 14:44
  • no worries, seems like the other you already answered that: magento.stackexchange.com/a/23784/2380 Sep 26, 2016 at 14:45
  • 1
    Forgot about that. :). I still say you should disable it.
    – Marius
    Sep 26, 2016 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.