[wp-trac] [WordPress Trac] #18081: Improve performance of taxonomy queries, avoid temporary tables

WordPress Trac wp-trac at lists.automattic.com
Tue Jul 12 11:29:32 UTC 2011


#18081: Improve performance of taxonomy queries, avoid temporary tables
-----------------------------------+-----------------------------
 Reporter:  tott                   |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Future Release
Component:  Taxonomy               |     Version:  3.2
 Severity:  normal                 |  Resolution:
 Keywords:  3.3-early westi-likes  |
-----------------------------------+-----------------------------

Comment (by scribu):

 That's a relief. :)

 A helper function for this might be a good idea, but give it a shorter
 name, i.e. wp_array_to_sql().

 Also, I don't think the $array_map_sanitation arg is useful. The caller
 can just apply it themselves.

 Just use absint() if they're integers or esc_sql() otherwhise.

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


More information about the wp-trac mailing list