0

We had a magento 2.3.0 multi-website shop and we use custom product import for shops. We use CLI script as a config for each shops and execute import with a common custom module handing few checkings. We read the a pre-defined column file and import to corresponding product attributes. Each shops crons are set on different timing(for example, for shop X we have "php importX.php" where we define basic configuration like website id, code,sku prefix etc). Now issue we have is some shops having around 3500 rows in the file and it's taking more than 7 hours to complete. Any advice on this really appreciated.

4
  • Well if I were to solve the problem, first of all I would try to find which process takes most time for, updating 3k products should not take 7hours long, unless you are fetching data for the products from an external source and you need to check ea product separately. To better answer your question, we would need to know what does take most time in the process, is it saving products or retrieving products data. Saving products can be handled by queuing saves on DB, as for the 2nd one it depends on various things Mar 26 at 10:31
  • Thank you @GosuPrzmak for the reply. We have a log after each product save which indicates, each product takes 4-5 seconds. We had staging environment in different server and it takes 2-3 seconds for the same. We have some custom checking in each product save. We will analyse time on each step and get back.
    – Arun K
    Mar 26 at 11:18
  • Do you product has tier price? Maybe it's related to this issue? github.com/magento/magento2/issues/28225
    – Jimmy
    Mar 27 at 15:12
  • @Jimmy Thank you for the reply. No tier prices in this case.
    – Arun K
    Mar 29 at 10:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.