[wp-trac] Re: [WordPress Trac] #4365: Deleting a category scales
poorly
WordPress Trac
wp-trac at lists.automattic.com
Mon Dec 29 03:00:27 GMT 2008
#4365: Deleting a category scales poorly
--------------------------+-------------------------------------------------
Reporter: markjaquith | Owner: ryan
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+-------------------------------------------------
Changes (by DD32):
* keywords: => needs-patch
* owner: anonymous => ryan
* component: Administration => Taxonomy
Comment:
Just tested, Took about.. 60 seconds to delete a category with >1000 posts
on my personal desktop, should probably be a much faster method to
recategorize posts..
For reference, Some code to create a thousand posts in a category, Change
the cat ID:
{{{
$cat_ID = 186;
for($i=0; $i<=1000; $i++) {
$a = array('post_status' => 'publish', 'post_category' => array($cat_ID),
'post_title' => "Test Post #$i", 'post_content' => $i );
var_dump( wp_insert_post( $a ) );
}
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/4365#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list