How do I have to import products in Magento using a direct connection to the database

后端 未结 4 1872
臣服心动
臣服心动 2021-02-10 07:34

I have about 50.000 of records to import in a Magento store. What I have already tested: The file is about 50 MB.

  • Splitted files
  • API
  • Magento Clas
4条回答
  •  北恋
    北恋 (楼主)
    2021-02-10 08:40

    Occasionally I've noticed bulk inserts that work by first creating a template model...

    $blankProduct = Mage::getModel('catalog/product');
    

    ...then avoid the creation of the model for each record...

    $newProduct = clone $blankProduct;
    $newProduct->setIsMassupdate(true)
        ...
    $newProduct->save();
    

    It's slightly more efficient but probably not enough to get that massive import to a reasonable time.

提交回复
热议问题