[wp-trac] [WordPress Trac] #12668: Better support for custom comment types

WordPress Trac noreply at wordpress.org
Sat Oct 11 17:26:59 UTC 2014


#12668: Better support for custom comment types
-------------------------+------------------------------
 Reporter:  ptahdunbar   |       Owner:  ptahdunbar
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Comments     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by judgej):

 @mark-k The whole point of this is that comments are *not* another post
 type. They live in a table all of their own, and that table can grow
 enormously when used by some plugins (e.g. WooCommerce uses a comment for
 each status change to an order, which usually amounts to six or more
 comments on each order, of which there can be hundreds of thousands on
 even a reasonably sized shop).

 The fact that there are no "types" used to group comments together by use,
 means that when this table grows, the queries to count comments on that
 table become very slow. A plugin can't say, "give me the count of all
 comments *I* have anything to do with" - it gets the counts of all
 comments globally across all parts of the application).

 Alternative approaches would be for plugins to stop using comments to
 store comments.

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


More information about the wp-trac mailing list