|
MediaWiki master
|
Cache and provide min/max ID and "size" (ID delta) of a table. More...
Public Member Functions | |
| __construct (private IConnectionProvider $connectionProvider, private string $tableName, private string $idField,) | |
| getIdDelta () | |
| Estimate the number of rows in the table, using the difference of maximum and minimum primary keys. | |
| getMaxId () | |
| Get the maximum ID. | |
| getMinId () | |
| Get the minimum ID. | |
Cache and provide min/max ID and "size" (ID delta) of a table.
Definition at line 12 of file TableStatsProvider.php.
| MediaWiki\RecentChanges\ChangesListQuery\TableStatsProvider::__construct | ( | private IConnectionProvider | $connectionProvider, |
| private string | $tableName, | ||
| private string | $idField ) |
Definition at line 17 of file TableStatsProvider.php.
| MediaWiki\RecentChanges\ChangesListQuery\TableStatsProvider::getIdDelta | ( | ) |
Estimate the number of rows in the table, using the difference of maximum and minimum primary keys.
Definition at line 30 of file TableStatsProvider.php.
| MediaWiki\RecentChanges\ChangesListQuery\TableStatsProvider::getMaxId | ( | ) |
| MediaWiki\RecentChanges\ChangesListQuery\TableStatsProvider::getMinId | ( | ) |