[buddypress-trac] [BuddyPress Trac] #8591: Improve query that runs to find total activities count in spam activity table
buddypress-trac
noreply at wordpress.org
Sat Nov 13 15:16:43 UTC 2021
#8591: Improve query that runs to find total activities count in spam activity
table
-------------------------+---------------------
Reporter: oztaser | Owner: imath
Type: enhancement | Status: closed
Priority: normal | Milestone: 10.0.0
Component: Activity | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
-------------------------+---------------------
Changes (by imath):
* owner: (none) => imath
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"13146" 13146]:
{{{
#!CommitTicketReference repository="" revision="13146"
Add a new param to `bp_activity_get()` to only get the number of items
Using the `count_total_only` parameter with `bp_activity_get()` will only
run the query to count the number of activity items. Using this new
parameter into the Activity WP Admin Screen improves the performance of
the query to get the total number of activities.
Props oztaser
Fixes #8591
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8591#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list