- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017
02:42 AM
05-19-2017
02:42 AM
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
If this response was helpful to you, consider giving kudos to this post
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2017
01:18 AM
09-04-2017
01:18 AM
Thanks @Tom Robertshaw
I ended up extending some functions of fastcsv import extension and everything was smooth afterwards
Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post
If this response was helpful to you, consider giving kudos to this post
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2017
12:38 PM
08-30-2017
12:38 PM
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!
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution" as appropriate. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2017
01:18 AM
09-04-2017
01:18 AM
Thanks @Tom Robertshaw
I ended up extending some functions of fastcsv import extension and everything was smooth afterwards
Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post
If this response was helpful to you, consider giving kudos to this post