mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-19 02:05:28 +00:00
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:
3
thirdparty/SQLite/CMakeLists.txt
vendored
3
thirdparty/SQLite/CMakeLists.txt
vendored
@@ -17,3 +17,6 @@ if(UNIX)
|
||||
target_compile_options(sqlite3 PRIVATE "-Wno-return-stack-address" "-Wno-uninitialized" "-Wno-deprecated-declarations")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# The dashboard measures each table's bytes (Database usage) with the dbstat table
|
||||
target_compile_definitions(sqlite3 PRIVATE SQLITE_ENABLE_DBSTAT_VTAB)
|
||||
|
||||
Reference in New Issue
Block a user