Opened 17 years ago
Closed 16 years ago
#1215 closed enhancement (fixed)
Decrease php usage by implementing LIMIT in requests to DB
| Reported by: | slaFFik | Owned by: | slaFFik |
|---|---|---|---|
| Priority: | major | Milestone: | 1.5 |
| Component: | Version: | ||
| Severity: | Keywords: | productivity | |
| Cc: | jason_jm |
Description
The main idea is:
When php makes a request to sort some information (about groups, members, blogs) it's reasonable to add sometimes in bp-...-classes.php (-templatetags.php and not only there) in:
$wpdb->prepare("SELECT ...");
this:
$wpdb->prepare("Select ... LIMIT 50");
So not all groups, blogs, members will be stored, but 10, 50 or 100. This will definitely decrease php usage. And I'm sure, no need to display ALL users/groups/blogs in Random mode. 25 will be enough.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
There's pretty much always a limit set since there are pagination defaults set.