Why hello there Magento gurus,
I'm importing large product catalog in Magento, so every milisec counts.
Import is kind of done, but I'm now searching for parts that could be improved and found one interesting ( at least for me ) moment -> http://screencast.com/t/Gq8VumQluKr
This is for 5K SKU's
and as you can see, there is a big difference.
In second collection I used getData()
and then from array fetched entity_id
.
But in first collection, I didn't use getData()
and fetched ID from model
function.
I know that getId()
most likely is call to function, but even if I call some getLala()
or getData('lala')
, using getData()
on collection and then looping will be hundreds ( or even thousands ) of times faster.
My question is - why there is such difference in performance and how these methods differ?
Thanks.