We have quite a small web page with only a couple of sites and < 10.000 visitors per year. The WordPress website exists since late 2020, Matomo is installed as a WordPRess plugin since roughly 2021, yet the mysql database for that page is almost 700 MB big, while it normally shouldn’t be much more than 100 MB. The raw data retention time is set to 30 days, the retention for reports to 12 months with both recommended boxes ticked. Old data is set to be deleted on a weekly base, yet it claims the database currently only holds 116.5 MB.
Yet when I look at the /var/lib/mysql// directory, while hardly any file is really more than 10 MB, most of the files clearly belong to Matomo with names like “wp_matomo_archive_blob_2020_08.ibd” and “wp_matomo_archive_numeric_2020_08.ibd” and when I calculate the sum of all files including the word matomo in their file name (find . -type f -iname '*matomo*' -exec du -b {} + | awk '{sum += $1} END {print sum / 1024 / 1024 " MB"}') I get 599 MB. So what on earth is going on? What can I do to shrink the size of the database to a sensible size, and why does Matomo display such a low size estimation when it’s that much larger?
1 post - 1 participant