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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hello @DionDesigns, welcome to WordPress Trac!
Thanks for your report, we are already tracking this request in #24044.