mirror of
https://github.com/nextcloud/server.git
synced 2026-06-24 16:09:50 -04:00
Implements RFC #59422. Adds four read-only diagnostic commands to the occ CLI for administrators to inspect database health without needing external tools: - db:info: shows engine version and key config variables with health check against recommended values - db:size: lists all tables ordered by total disk usage - db:index-usage: reports unused indexes via performance_schema (MySQL) or pg_stat_user_indexes (PostgreSQL) - db:locks: detects active blocking transactions and deadlocks All commands support MySQL/MariaDB and PostgreSQL. A --json flag is available for automated parsing. Includes 31 unit tests. Closes #59422 Signed-off-by: Rodrigo Correia <rodrigo.mendes.correia@tecnico.ulisboa.pt> Signed-off-by: Carolina Quinteiro <carolinafquinteiro@tecnico.ulisboa.pt> Co-authored-by: Carolina Quinteiro <carolinafquinteiro@tecnico.ulisboa.pt> |
||
|---|---|---|
| .. | ||
| Migrations | ||
| AddMissingColumns.php | ||
| AddMissingIndices.php | ||
| AddMissingPrimaryKeys.php | ||
| ConvertFilecacheBigInt.php | ||
| ConvertMysqlToMB4.php | ||
| ConvertType.php | ||
| DbIndexUsage.php | ||
| DbInfo.php | ||
| DbLocks.php | ||
| DbSize.php | ||
| ExpectedSchema.php | ||
| ExportSchema.php | ||
| SchemaEncoder.php | ||