Once a day I will calculate and update a value for almost all the nodes in my site. Right now I have tried publishing each node at a time, but the performance is not very good at all. Is there a way of bulk publishing the nodes through the api after I have updated the value for each node (rather than publishing each node at a time)?
You're able to to publish a node and all it's childnodes with the PublishWithChildrenWithResult() method. I think that's the closest you'll get to a "bulk publish".
If you mean my website structure, it is very straight forward :-)
homepage
- category1
--itemt1
--item2
--etc
All in all I guess I have approx. 15000 products. The problem is, that I need to calculate a value for each of the items once a day. The problem with PublishWithChildrenWithResult() method is that it publishes all nodes (of course), but I need to republish the nodes already published, and not publish unpublished nodes :-)
Bulk publish nodes
Hi
Once a day I will calculate and update a value for almost all the nodes in my site. Right now I have tried publishing each node at a time, but the performance is not very good at all. Is there a way of bulk publishing the nodes through the api after I have updated the value for each node (rather than publishing each node at a time)?
thanks
Thomas
Hi Thomas,
How is your structure set up? :)
You're able to to publish a node and all it's childnodes with the PublishWithChildrenWithResult() method. I think that's the closest you'll get to a "bulk publish".
- Bo
Hi Bo
If you mean my website structure, it is very straight forward :-)
homepage
- category1
--itemt1
--item2
--etc
All in all I guess I have approx. 15000 products. The problem is, that I need to calculate a value for each of the items once a day. The problem with PublishWithChildrenWithResult() method is that it publishes all nodes (of course), but I need to republish the nodes already published, and not publish unpublished nodes :-)
thanks
Thomas
is working on a reply...