mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-14 07:47:13 +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:
@@ -258,6 +258,11 @@ class TestSQLDatabase : public GameDatabase {
|
||||
void InsertTrafficMinutes(const std::vector<TrafficMinute>& minutes) override {}
|
||||
std::vector<TrafficMinute> GetTrafficMinutes(int64_t from, int64_t to, int64_t bucketSeconds) override { return {}; }
|
||||
uint32_t PruneTrafficMinutes(int64_t beforeTime) override { return 0; }
|
||||
Measurement MeasureDatabaseUsage() override { return {}; }
|
||||
void InsertDatabaseUsage(const UsageTotals& totals, const std::vector<TableUsage>& tables) override {}
|
||||
std::vector<UsageTotals> GetDatabaseUsageTotals(int64_t from, int64_t to) override { return {}; }
|
||||
std::vector<TableUsage> GetDatabaseUsageTables(int64_t time) override { return {}; }
|
||||
uint32_t PruneDatabaseUsage(int64_t beforeTime) override { return 0; }
|
||||
void InsertInstanceSamples(const std::vector<InstanceSample>& samples) override {}
|
||||
std::vector<InstanceSample> GetInstanceSamples(int64_t from, int64_t to, int64_t bucketSeconds, uint32_t zoneId) override { return {}; }
|
||||
void InsertPositionSamples(const std::vector<PositionSample>& samples) override {}
|
||||
|
||||
Reference in New Issue
Block a user