Hi all , i’m a newbie magento php coding , so i’m looking a way for import bulk products from an xml data.
i wrote a code using simplxml and it works perfectly (easy configurable and fast) but when i connect to magento api via soap , it take about 1second per products importing to magento.
Even i dont parse an xml , a simple api connection take 10seconds.
are these durations normal? can i speed it up by changing mysql conf (i use with default wamp configurations) ,
which method should i use for increase speed? i looked a way for direct sql coding but , magento uses a lot of table for one product (attributes, stocks, description, url-key etc....) an it seems too complex for this process.
Why don’t you use System -> Import / Export -> Profiles -> Import All Products from Admin Panel ? Anyway, even doing it this way, Magento needs its time to build all the structure for the imported products. I don’t recommend you importing products directly from sql statements, since it may not be compatible with further version of Magento or even with installed extensions.
I would be interested in knowing how you find an answer to this issue becasue I am looking into getting this software to replace our current software and we often import/update anywhere from 1000->10,000 items at once....
Why don’t you use System -> Import / Export -> Profiles -> Import All Products from Admin Panel ? Anyway, even doing it this way, Magento needs its time to build all the structure for the imported products. I don’t recommend you importing products directly from sql statements, since it may not be compatible with further version of Magento or even with installed extensions.
I did not see this option in the demo for the community version...is this only in enterprise?
Advanced Settings of GoMage Feed Pro perhaps could help you
Number of Products
This option allows you to optimize file creation for low memory servers or for stores with a large quantity of
products.
Set “Number of Products” equal 50 or 100 (or more) and generate the Feed file.
You will get the Feed file with all 10.000 products.
Export Disabled and Out of stock Products
Select “Yes” if you want to export Disabled and Out of stock products into Feed file.
You will be able to get more details on our page. You will find there live demo and users manual.
Advanced Settings of GoMage Feed Pro perhaps could help you
Number of Products
This option allows you to optimize file creation for low memory servers or for stores with a large quantity of
products.
Set \"Number of Products\” equal 50 or 100 (or more) and generate the Feed file.
You will get the Feed file with all 10.000 products.
Export Disabled and Out of stock Products
Select \"Yes\" if you want to export Disabled and Out of stock products into Feed file.
You will be able to get more details on our page. You will find there live demo and users manual.
try Magmi !!! see this post
it’s free, it’s fast and has a lot of features
Magmi currently handles CSV but it’s based on an open plugin architecture.
I can provide some support for teaching you how to create a custom datasource based on your XML feed.
[edit] I didn’t realize how old this thread was before posting :/
this is probably not much help for you. But just thought I’d share my workflow with you.
I get a pretty substantial xml file weekly. I have a java app that parses the xml and maps various fields (with some concatenation) to a table in a .mdb file. The mdb is used by our back office system. the xml has new products and updates to old (price changes, release dates etc). This java utility only takes a minute or two.
I take the .mdb and create a mapping for my dataflow template save that as a csv (value delimiter ^ and enclose values in ~).
My csv has about 4400 (includes some discontinued items). data flow import takes about 40 minutes. They key is setting the Number of records (under profile information) from 1 to something much greater. I do 500 at a time. If you leave it at 1 at a time, then expect dataflow to take about 4 hours on a list this size.
4400 items, magmi could do it in about 1mn or less depending on attribute number !!!
it has also a lot of neat features and an open plugin architecture.
really worth the try !!!
Basically you can speed up your import in different ways. You can use some tools or services or you can write a code. I prefer tools and services. As for me they are more reliable than codes. Personally I use this extension. the reason is that i wrote a code a few month ago and all my import failed. I had to wait until the import is over and i noticed that nothing had changed - all the products were not imported. I tried to do it one more time..but nothing happened. Since then i don’t use php codes.