I have written a script to create attribute set and attribute from csv and it worked fine on my localhost but after uploading it to server I found that it is taking so much time to do the job even with 1 entry. So I was debugging it and I found out that "initFromSkeleton" is taking time.
$entityTypeId = Mage::getModel('eav/entity') ->setType('catalog_product') ->getTypeId(); // 4 - Default $newSet = Mage::getModel('eav/entity_attribute_set'); $newSet->setEntityTypeId($entityTypeId); $newSet->setAttributeSetName($setName); $newSet->save(); $newSet->initFromSkeleton($entityTypeId); $newSet->save();
I don't know what to do because to build new attribute based on default attribute set I have to write this initFromSkeleton. While searching google I found this link. But it understood from there.
Could any one has done this before. Please help me out. Thanks in advance