So I've written a script to import customer records from csv files but the import is too slow. I've over a million records which need to be imported into magento but I can't find a fastest way of doing so.
The code snippet is below:
$importModel = Mage::getModel('importexport/import'); /** @var $importModel Mage_ImportExport_Model_Import */ $importModel->setEntity('customer'); $importModel->validateSource($fileInfo->getPathname()); $importModel->importSource(); $importModel->invalidateIndex();
Any help is highly appreciated.
Solved! Go to Solution.
If the magento import process isn't fast enough, I would probably work out how to do it with direct mysql queries (with care!)