mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-24 07:53:51 +00:00
db5e5e9003
On large wikis with lots of lint errors, counting the entire table can be problematic from a performance perspective, sometimes taking minutes. Instead, use Database::estimateRowCount(), which uses EXPLAIN SELECT COUNT(*) to get an approximate value for the number of rows. We do make sure that if the category actually has no rows, that it will return 0. This should be considered a temporary solution, and we should look into doing something like the SiteStats incremental updates table in the long run. Bug: T184280 Change-Id: I2d4dcc615477fd60e41dfed4a3d1a3ad52a9f4af |
||
---|---|---|
.. | ||
ApiQueryLintErrors.php | ||
ApiQueryLinterStats.php | ||
ApiRecordLint.php | ||
CategoryManager.php | ||
Database.php | ||
Hooks.php | ||
LintError.php | ||
LintErrorsPager.php | ||
MissingCategoryException.php | ||
RecordLintJob.php | ||
SpecialLintErrors.php | ||
TotalsLookup.php |