diff --git a/main.go b/main.go index cbe7ba2..301a71a 100644 --- a/main.go +++ b/main.go @@ -67,6 +67,20 @@ import ( // D1-3, R1-3 4 bytes 010.52 3 031.56 // --------------------------------------------------------------------------- // Total 137.99 +// +// Compared to no optimisations: +// +// Column Column size (bytes) Per month (MB) X Total (MB) +// --------------------------------------------------------------------------- +// Timestamps 8 bytes 21.04 +// Values 4 bytes 10.52 21 220.92 +// --------------------------------------------------------------------------- +// Total 241.96 +// +// Conclusion: +// At the expense of having to create more complicated queries for analysis and visualisation, +// the optimisations save at least 103.97 MB or 1-137.99/241.96 = 43% +// in uncompressed storage space per month. type Payload struct { T string `json:"t"` // Timestamp Dt1 *int `json:"dt1"` // Delivered / imported meter reading tariff 1 (kWh)