feat(db): measure the database's size per table and keep the samples

IDatabaseUsage: MySQL/MariaDB from information_schema.TABLES (fresh
statistics on MySQL 8), SQLite from its page counts and the dbstat table
(now compiled in) with counted rows. Samples go to database_usage and
database_usage_tables (migrations 105 / 88).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-02 17:57:24 -05:00
parent c42a7ba387
commit 3daff99556
13 changed files with 313 additions and 1 deletions

View File

@@ -26,6 +26,7 @@ set(DDATABASES_DATABASES_MYSQL_TABLES_SOURCES
"PropertyReputation.cpp"
"BbbAutosave.cpp"
"ServerTraffic.cpp"
"DatabaseUsage.cpp"
"MessageCaptures.cpp"
"ChatLog.cpp"
"ChatFlags.cpp"