[wp-trac] Re: [WordPress Trac] #6593: Tags with custom slugs get recreated on post edit screen

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 18 05:06:40 GMT 2008


#6593: Tags with custom slugs get recreated on post edit screen
-----------------------------+----------------------------------------------
 Reporter:  jhodgdon         |        Owner:  anonymous
     Type:  defect           |       Status:  new      
 Priority:  normal           |    Milestone:  2.9      
Component:  Administration   |      Version:  2.5      
 Severity:  normal           |   Resolution:           
 Keywords:  tags, has-patch  |  
-----------------------------+----------------------------------------------
Comment (by ryan):

 Patch adds an index to term.name and does a query on the name of the slug
 query does not match anything. I decided to do two queries instead of
 lumping it into so that the typical case of where the slug matches doesn't
 get slowed down.  "slug" has a UNIQUE index meaning the SELECT does a very
 fast const join type.  SELECTing on slug OR name results in a slower
 index_merge.  Since we expect to be matching on the slug in most cases,
 lets keep that as fast a possible.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6593#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list