Make WordPress Core

Opened 11 months ago

Last modified 7 months ago

#57496 assigned enhancement

Lazy load post meta

Reported by: spacedmonkey's profile spacedmonkey Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 4.5
Component: Posts, Post Types Keywords:
Focuses: performance Cc:

Description

Introduced in [36566], there is was a API introduced to lazily load metadata using the class WP_Metadata_Lazyloader. Currently this is only used comment and term meta data. However, this could be expanded to support over meta types like posts.

WP_Query is now run multiple lines per page load. Meaning that post meta is primed even when it is not needed. Using the WP_Metadata_Lazyloader class, post meta could be loaded on demand and save database queries and object cache lookups.

Change History (3)

#2 @spacedmonkey
7 months ago

  • Keywords has-patch has-unit-tests commit added
  • Milestone changed from Awaiting Review to 6.3
  • Owner set to spacedmonkey
  • Status changed from new to assigned

#3 @spacedmonkey
7 months ago

  • Keywords has-patch has-unit-tests commit removed
  • Milestone changed from 6.3 to Future Release
  • Owner spacedmonkey deleted
Note: See TracTickets for help on using tickets.