Update size estimation comments based on new log entry format
parent
97286a5827
commit
2df41462ad
|
|
@ -25,11 +25,12 @@ EnergyLogger::EnergyLogger(QObject *parent) : EnergyLogs(parent)
|
||||||
// of all series building on it.
|
// of all series building on it.
|
||||||
|
|
||||||
// Disk space considerations;
|
// 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%
|
// SQLite adds metadata and overhead of about 5%
|
||||||
// The resulting database size can be estimated with (count being the sum of all numbers below):
|
// The resulting database size can be estimated with (count being the sum of all numbers below):
|
||||||
// (count * 30 bytes) + (count * things * 50 bytes) + 5%
|
// (count * 50 bytes) + (count * things * 60 bytes) + 5%
|
||||||
// 10000 entries, with 5 energy things => ~3MB
|
// 10000 entries, with 5 energy things => ~4MB
|
||||||
|
// Note: use sqlite3_analyzer to see the approx. size per entry in each table.
|
||||||
|
|
||||||
m_maxMinuteSamples = 15;
|
m_maxMinuteSamples = 15;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue