Opened 19 years ago
Closed 19 years ago
#3347 closed defect (bug) (fixed)
Changeset 4455 - SELECT FOUND_ROWS() faster than count()?
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.1 | Priority: | normal |
| Severity: | normal | Version: | 2.1 |
| Component: | General | Keywords: | |
| Focuses: | Cc: |
Description
This change looks like it resolves ticket 3274 in a different way than the patch. I'm wondering if an additional query is faster/slower than counting the array we already have as a PHP variable.
Change History (3)
Note: See
TracTickets for help on using
tickets.
In my testing, SELECT FOUND_ROWS() is extremely fast, and adding SQL_CALC_FOUND_ROWS to the post query has minimal overhead. Overall, it's faster for me than doing another SELECT FROM. What are your impressions so far?