View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000550 | XMB1 | Bugs | public | 2019-12-09 06:46 | 2020-10-20 18:17 |
Reporter | miqrogroove | Assigned To | miqrogroove | ||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Product Version | 1.9.8 SP2 | ||||
Target Version | 1.9.12 | Fixed in Version | 1.9.12 | ||
Summary | 0000550: Query Optimization in updateforumcount() for Big Boards | ||||
Description | The expression "SELECT COUNT(pid)" is significantly not optimal in a test environment with more than 200,000 posts per forum. The phpMyAdmin profiling option indicates more than 1000 ms spent reading tables. The EXPLAIN result shows the posts table indexes were unused. By switching this to "SELECT COUNT(*)" the query returns the same result in 80 ms (more than 12x faster) by using the fid index instead of scanning the table. Similarly, the expression "SELECT COUNT(tid)" from forumdisplay.php spends more than 1500 ms reading tables. Switching to "SELECT COUNT(*)" allows the result to come back from the index in 238 ms. I was able to reduce this further to 71 ms by restoring the fid index that no longer exists in version 1.9.11. | ||||
Tags | No tags attached. | ||||
MySQL Version | |||||
PHP Version | |||||
Web Server | |||||
Browser | |||||
Flags | |||||
Original Reporter | |||||
SVN Revision | 2777 | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2019-12-09 06:46 | miqrogroove | New Issue | |
2019-12-29 02:49 | miqrogroove | Assigned To | => miqrogroove |
2019-12-29 02:49 | miqrogroove | Status | new => assigned |
2019-12-29 03:49 | miqrogroove | Status | assigned => resolved |
2019-12-29 03:49 | miqrogroove | Resolution | open => fixed |
2019-12-29 03:49 | miqrogroove | SVN Revision | => 2777 |
2019-12-29 03:49 | miqrogroove | Fixed in Version | => 1.9.12 |
2020-10-20 18:17 | miqrogroove | Status | resolved => closed |