Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#42204 closed enhancement (duplicate)

_options table missing an index on autoload column

Reported by: DionDesigns Owned by:
Priority: normal Milestone:
Component: Options, Meta APIs Version:
Severity: normal Keywords:
Cc: Focuses:

Description

wp-includes/options.php has the following line:

if ( !$alloptions_db = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options WHERE autoload = 'yes'" ) )

However, the "autoload" column is not indexed. This can lead to significant performance degradation if the _options table is large.

Change History (1)

#1 @ocean90
9 years ago

  • Component GeneralOptions, Meta APIs
  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed
  • Type defect (bug)enhancement
  • Version 4.8.2

Hello @DionDesigns, welcome to WordPress Trac!

Thanks for your report, we are already tracking this request in #24044.

Note: See TracTickets for help on using tickets.