Opened 7 years ago
Closed 7 years ago
#42204 closed enhancement (duplicate)
_options table missing an index on autoload column
Reported by: | DionDesigns | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Options, Meta APIs | Keywords: | |
Focuses: | Cc: |
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)
Note: See
TracTickets for help on using
tickets.
Hello @DionDesigns, welcome to WordPress Trac!
Thanks for your report, we are already tracking this request in #24044.