Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Thomas Dolberg 74 posts 95 karma points
    Jun 06, 2011 @ 21:01
    Thomas Dolberg

    Bulk publish nodes


    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)?




  • Bo Damgaard Mortensen 719 posts 1207 karma points
    Jun 07, 2011 @ 12:16
    Bo Damgaard Mortensen

    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


  • Thomas Dolberg 74 posts 95 karma points
    Jun 08, 2011 @ 21:10
    Thomas Dolberg

    Hi Bo


    If you mean my website structure, it is very straight forward :-) 


    - category1





    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 :-) 




Please Sign in or register to post replies

Write your reply to: