[wp-trac] [WordPress Trac] #40351: Term post re-counts scale poorly, are common and difficult to avoid

WordPress Trac noreply at wordpress.org
Sat Sep 5 04:22:36 UTC 2020


#40351: Term post re-counts scale poorly, are common and difficult to avoid
-------------------------------------------------+-------------------------
 Reporter:  mattoperry                           |       Owner:  whyisjake
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.6
Component:  Taxonomy                             |     Version:  4.8
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests has-patch needs-    |     Focuses:
  testing early needs-dev-note needs-refresh     |  performance
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 Further notes on what needs to be added for this to be ready

 * Shortly after `deleted_term_relationships` and `added_term_relationship`
 fire, calls to `wp_update_term_count()` need to be removed/modified as the
 proposed patch doesn't defer term counting like the original plugin.
 * Including a term count on `edit_term` adds a new location in which terms
 are counted and doesn't seem like it's needed
 * `countable_status` is new, very useful but unrelated to this feature.
 It's probably best left for another ticket.

 I'm leaving my PR as is at moment (in some need of change) so I can get
 some others' feedback on it before updating. As many eyes as possible
 would be dandy, thanks.

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


More information about the wp-trac mailing list