Opened 2 years ago
Last modified 16 months ago
#52360 new enhancement
speed up update_meta_cache with easy fix
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Options, Meta APIs | Keywords: | |
Focuses: | performance | Cc: |
Description
wp-includes/meta.php:1061
<?php $meta_list = $wpdb->get_results( "SELECT $column, meta_key, meta_value FROM $table WHERE $column IN ($id_list) ORDER BY $id_column ASC", ARRAY_A );
in this request should avoid "ORDER BY $id_column ASC" to speed up this query (at least 3 times faster)
Note: See
TracTickets for help on using
tickets.
Hi there, welcome to WordPress Trac! Thanks for the ticket.
Just linking to some related tickets here: #14254, #42566.