mediawiki-extensions-Linter/includes
Kunal Mehta db5e5e9003 Use estimateRowCount() instead of actually counting everything
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
2018-02-01 13:15:06 -08:00
..
ApiQueryLintErrors.php API: Allow querying linterrors by pageid 2017-11-24 21:03:05 -08:00
ApiQueryLinterStats.php Add API meta=linterstats module 2017-06-06 10:02:49 -07:00
ApiRecordLint.php Update IPSet use statement 2018-01-21 04:45:55 +00:00
CategoryManager.php Move category IDs into the extension.json information 2017-12-08 11:28:21 -05:00
Database.php Use estimateRowCount() instead of actually counting everything 2018-02-01 13:15:06 -08:00
Hooks.php build: Updating mediawiki/mediawiki-codesniffer to 0.9.0 2017-06-20 00:10:41 -07:00
LintError.php Include location in LintError::id() 2016-12-02 16:15:17 -08:00
LintErrorsPager.php Move $hasNameCats into the information in extension.json 2017-12-08 06:42:43 +00:00
MissingCategoryException.php Handle non-existent categories in the database better 2017-10-31 10:42:07 -07:00
RecordLintJob.php Add caching to looking up totals 2017-05-29 07:33:41 -07:00
SpecialLintErrors.php Parse linter-category-{name}-desc messages 2017-10-04 20:17:22 -07:00
TotalsLookup.php build: Updating mediawiki/mediawiki-codesniffer to 0.9.0 2017-06-20 00:10:41 -07:00