If you ever tried to import product stocks in Magento I’m sure you noticed is extremly slow.
Doesn’t matter how many fields you set in the CSV file it always takes the same time.
Digging arround I found this amazing code.
Create a CSV File
Place your CSV file like I wrote above.
You can add many fields but I would suggest 2 or 3 (to be faster)