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

WordPress Trac noreply at wordpress.org
Thu Nov 19 23:22:47 UTC 2015


#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 ericmann):

 As an alternative approach, patch 33885.2.diff adds a query earlier in the
 function's execution to allow short-circuiting everything if necessary. If
 custom fields are a finite set, they can be hard-coded into an array. If
 developers instead want to pull them with a different query (or from a
 provider like ElasticSearch for performance) they can hook into the same
 filter to grab the data as necessary.

 This has the advantage of leaving existing functionality in place while
 still giving affected sites the ability to override the defaults in favor
 of performance.

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


More information about the wp-trac mailing list