How can I programatically set the categories AND the sort order/position of products? I already have an exisiting script that iterates through my products and assigns the categories
$product = Mage::getModel('catalog/product');
$product->setData($my_array_with_a_lot_of_data_including_arrayCategoryIds);
$product->save();
However, this set's the sort order/position for all products to "1". I also have found this posting
How to update product position (number) in specific category programmatically
but I'd like to avoid loading every single category and do something like
$product->setPosition($my_products_position);
Is there a way that does not require loading every single category?
PS: I want to assign the same position in every category.