[wp-trac] [WordPress Trac] #62774: The query in the count_user_posts function within wp-includes/user.php can be optimized to improve performance.

WordPress Trac noreply at wordpress.org
Fri Jan 3 06:58:02 UTC 2025


#62774: The query in the count_user_posts function within wp-includes/user.php can
be optimized to improve performance.
---------------------------+------------------------------
 Reporter:  deepakrohilla  |       Owner:  deepakrohilla
     Type:  enhancement    |      Status:  assigned
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Database       |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  performance
---------------------------+------------------------------
Changes (by mukesh27):

 * keywords:  has-patch => needs-patch
 * type:  defect (bug) => enhancement
 * component:  Query => Database


Comment:

 Thanks @deepakrohilla for the ticket!

 Could you please share performance numbers before/after the changes with
 posts(10/100/1000)?

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


More information about the wp-trac mailing list