[wp-trac] Re: [WordPress Trac] #4365: Deleting a category scales poorly

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 8 21:58:16 GMT 2009


#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        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------
Changes (by vladimir_kolesnikov):

 * cc: vladimir@… (added)


Comment:

 I have a question, sorry if it is silly - I am not familiar with taxonomy
 internals: why not use a query like this:

 {{{
 DELETE
 FROM wp_term_taxonomy AS tt LEFT JOIN wp_term_relationships AS tr
 USING(term_taxonomy_id)
 WHERE tt.term_id = TERM_ID AND tt.term_texonomy = 'TAXONOMY'
 }}}

 instead of that foreach loop in wp_delete_term()?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/4365#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list