Make WordPress Core

Opened 7 years ago

Last modified 3 weeks ago

#33885 closed defect (bug)

meta_form performs a potentially expensive query — at Version 1

Reported by: jorbin's profile jorbin Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.3.1
Component: Administration Keywords: has-patch needs-testing needs-unit-tests needs-refresh close
Focuses: administration, 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
7 years ago

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