[wp-hackers] Plugin to update all posts in a category

Callum Macdonald lists.automattic.com at callum-macdonald.com
Mon Feb 26 07:44:57 GMT 2007

Hi Robert,

I think you're right. What I might do is implement both, with an option 
to select the direct query as a fallback. Hopefully that will give me a 
good balance of compatibility and performance.

Thanks for the feedback,


Robert Deaton wrote:
> On 2/25/07, Callum Macdonald 
> <lists.automattic.com at callum-macdonald.com> wrote:
>> G'day,
>> 3) I plan to use a foreach loop to circle through each post and then use
>> the update_post_meta() function. Any feedback on this approach would be
>> great.
> Depending on how many posts you plan to accommodate, it may (and I say
> this with great hesitation) be better to roll your own custom query to
> update a batch of posts at once, as writes are expensive and you may
> easily stretch the time limit for loading a page. Just a thought.

More information about the wp-hackers mailing list