[wp-trac] [WordPress Trac] #33885: meta_form performs a potentially expensive query

WordPress Trac noreply at wordpress.org
Wed May 24 13:18:15 UTC 2017

#33885: meta_form performs a potentially expensive query
 Reporter:  jorbin                   |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Administration           |     Version:  4.3.1
 Severity:  critical                 |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  performance

Comment (by robscott):

 Agree - though it may be as easy to make this an option, which defaults to
 "off", rather than using a filter. Its calling the expensive query when it
 wasn't (necessarily) needed that's the problem imo.

 Is it not an option to update the database to a shorter `meta_key`
 (`varchar(191)`) after confirming the non existence of keys longer than
 that. I don't see how that could destroy any data, ever?

Ticket URL: <https://core.trac.wordpress.org/ticket/33885#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list