[wp-trac] [WordPress Trac] #52360: speed up update_meta_cache with easy fix

WordPress Trac noreply at wordpress.org
Thu Aug 29 05:21:06 UTC 2024


#52360: speed up update_meta_cache with easy fix
-----------------------------------+------------------------------
 Reporter:  vladislavdavarashvili  |       Owner:  (none)
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Options, Meta APIs     |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:                         |     Focuses:  performance
-----------------------------------+------------------------------

Comment (by wpcharged):

 [https://core.trac.wordpress.org/ticket/25511 25511] has a reason for
 adding ordering by meta_id to return the same order for get_post_meta. It
 makes sense, although the use case is an unorthodox way of saving meta, it
 could have an impact if post meta order was important in custom code?

 In most cases the ordering wouldn't be important, and removing it could
 save 50-100ms+ on large post id look ups (600+ IDs).

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52360#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list