Update size estimation comments based on new log entry format

master
Michael Zanetti 2021-12-06 12:24:34 +01:00
parent 97286a5827
commit 2df41462ad
1 changed files with 4 additions and 3 deletions

View File

@ -25,11 +25,12 @@ EnergyLogger::EnergyLogger(QObject *parent) : EnergyLogs(parent)
// of all series building on it.
// Disk space considerations;
// Each entry takes approx 30 bytes for powerBalance + 50 bytes for thingCurrentPower per thing of disk space
// Each entry takes approx 50 bytes for powerBalance + 60 bytes for thingCurrentPower per thing of disk space
// SQLite adds metadata and overhead of about 5%
// The resulting database size can be estimated with (count being the sum of all numbers below):
// (count * 30 bytes) + (count * things * 50 bytes) + 5%
// 10000 entries, with 5 energy things => ~3MB
// (count * 50 bytes) + (count * things * 60 bytes) + 5%
// 10000 entries, with 5 energy things => ~4MB
// Note: use sqlite3_analyzer to see the approx. size per entry in each table.
m_maxMinuteSamples = 15;