WordPress.org

Make WordPress Core

Opened 6 years ago

Last modified 5 weeks ago

#33885 new defect (bug)

meta_form performs a potentially expensive query — at Version 1

Reported by: jorbin Owned by:
Milestone: Future Release Priority: normal
Severity: critical Version: 4.3.1
Component: Administration Keywords: has-patch needs-testing needs-unit-tests
Focuses: performance Cc:

Description (last modified by mikeschroder)

This is a follow-up to #24498 and the research that @tollmanz did on the query used in meta_form. To summarize:

The query in meta_form can be incredibly slow on sites with a lot of post meta.

The solution to me seems to be to cache the query and update the cache of meta to use every time a new piece of post_meta is saved. This will prevent the query from needing to be run on sites with a persistent cache.

Change History (1)

#1 @mikeschroder
6 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.