cancel
Showing results for 
Search instead for 
Did you mean: 

Customer import is too slow

SOLVED

Customer import is too slow

Hi all, 

 

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. 

 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Customer import is too slow

Thanks @Tom Robertshaw

 

I ended up extending some functions of fastcsv import extension and everything was smooth afterwards Smiley Happy 



Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

View solution in original post

2 REPLIES 2

Re: Customer import is too slow

If the magento import process isn't fast enough, I would probably work out how to do it with direct mysql queries (with care!)

----
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!

Re: Customer import is too slow

Thanks @Tom Robertshaw

 

I ended up extending some functions of fastcsv import extension and everything was smooth afterwards Smiley Happy 



Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post