Nextcloud version (eg, 20.0.5): 20.0.6
Operating system and version (eg, Ubuntu 20.04): Docker : nextcloud:production-apache
Apache or nginx version (eg, Apache 2.4.25): Traefik latest
PHP version (eg, 7.4): PHP of the container
The issue you are facing: The database is huge for my little installation. I have only 6 users that mainly use it for contact sync and file sync. The database is about 56Gb.
To clean the database, can I truncate the table?
Thanks
Pierre
The probleme come from oc_filecache:
MariaDB [nextcloud]> SELECT
-> TABLE_SCHEMA AS `Database`,
-> TABLE_NAME AS `Table`,
-> ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS `Size (MB)`
-> FROM
-> information_schema.TABLES
-> ORDER BY
-> (DATA_LENGTH + INDEX_LENGTH)
-> DESC;
±-------------------±-----------------------------------------------------±----------+
| Database | Table | Size (MB) |
±-------------------±-----------------------------------------------------±----------+
| nextcloud | oc_filecache | 50589 |
| nextcloud | oc_bruteforce_attempts | 35 |
| nextcloud | oc_activity | 7 |
| mysql | time_zone_transition | 7 |
| nextcloud | oc_mail_recipients | 4 |
| nextcloud | oc_jobs | 4 |
| nextcloud | oc_mail_messages | 3 |
| nextcloud | oc_cards | 2 |
| mysql | help_topic | 2 |
| nextcloud | oc_filecache_extended | 1 |
| mysql | time_zone_transition_type | 1 |