[wp-trac] [WordPress Trac] #34304: get_and_update_post_meta for atomic post meta operations

WordPress Trac noreply at wordpress.org
Thu Oct 15 15:35:39 UTC 2015


#34304: get_and_update_post_meta for atomic post meta operations
-----------------------------+------------------------------
 Reporter:  lpghatguy        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Database         |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by swissspidy):

 Why limit this to post meta? The same race conditions can happen with
 ''every'' table and entry.

 WordPress currently doesn't use table/row locks as these are dependant on
 the storage engines and not guaranteed to be available all the time. Also,
 using multiple database servers needs to be considered.

 All in all, it's not as trivial as it sounds.

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


More information about the wp-trac mailing list