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
    0

    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

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

    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
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft