# Max size insights data

**URL:** <https://community.homey.app/t/max-size-insights-data/102313>\
**Category:** Developers\
**Created:** [January 25, 2024, 11:01pm UTC](https://community.homey.app/t/max-size-insights-data/102313 "2024-01-25T23:01:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TastefulBass](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tastefulbass/32/98225_2.png) [@TastefulBass](https://community.homey.app/u/TastefulBass)\
**Post date:** [January 25, 2024, 11:01pm UTC](https://community.homey.app/t/max-size-insights-data/102313/1 "2024-01-25T23:01:17Z")

</div>

Hi all,

I’ve been developing an app for a p1 smart energy meter. And I’m reaching the point of publishing. This app is recording 10 different capabilities every 5 seconds. I read somewhere that every capability is recorded in insights and when I calculate the amount of data this is producing over a year it frightens me a bit.

In my calculations I assume every value is stored in a 4 byte floating point number.

10 \* 4 \* 12 \* 60 \* 24 \* 365 = 240 MB per year, which in my opinion sounds like a lot when we have only 2,5GB disk space. Even if I record the data once very 10 seconds it’s still 120MB a year.

I was wondering how long the insight data is stored and if it gets decimated when it reaches a certain age?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 25, 2024, 11:10pm UTC](https://community.homey.app/t/max-size-insights-data/102313/2 "2024-01-25T23:10:22Z")

</div>

Yeah data gets summarized very quickly, the used datapoints get fewer and fewer back in time.

These graphs are from a P1 with updates _every second_:

 ![Screenshot_20240126-000548_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/3/2332b6a13e8aa8f7d7d84d76af46cd6d0ca1336f.jpeg)

 ![Screenshot_20240126-000631_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/1/b18207fc9301881eb6c1cff629c51aa6d1172e22.jpeg)

 ![Screenshot_20240126-000654_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/6/1687946994bd3da2cbbb76c3eeb4c9200b61f6e7.jpeg)

 ![Screenshot_20240126-000718_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/182a61df0e855e53fc5c28ac0020c6741c229e63.jpeg)

 ![Screenshot_20240126-001423_Firefox](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/2/f2ed3aa5e0afaf2ccccfdc239b39679294a102ba.jpeg)

.

Total size of all of my insights:

 ![Screenshot_20240126-001239_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/3/f3b619fedc229e69e3396155c5abccd7a5367e33.jpeg)

---

<div class="post-metadata">

**Author:** ![TastefulBass](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tastefulbass/32/98225_2.png) [@TastefulBass](https://community.homey.app/u/TastefulBass)\
**Post date:** [January 26, 2024, 11:56am UTC](https://community.homey.app/t/max-size-insights-data/102313/3 "2024-01-26T11:56:12Z")

</div>

Okay, thanks for the insight of your insight 😉

Is there any documentation on what the decimation over time is?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 26, 2024, 12:02pm UTC](https://community.homey.app/t/max-size-insights-data/102313/4 "2024-01-26T12:02:28Z")

</div>

> [@TastefulBass](#):
>
> Is there any documentation on what the decimation over time is?

> [@Insights: Choose date with 24h view / Ability to turn off interpolation (graph smoothing)](https://community.homey.app/t/insights-choose-date-with-24h-view-ability-to-turn-off-interpolation-graph-smoothing/93842/9):
>
> These are the rrdtool definitions that are used: 'RRA:AVERAGE:0.6:5:720', 'RRA:AVERAGE:0.6:60:360', 'RRA:AVERAGE:0.6:300:576', 'RRA:AVERAGE:0.6:3600:336', 'RRA:AVERAGE:0.6:21600:3000', 'RRA:AVERAGE:0.6:604800:520', Which, I think, means: keep 720 5-second averages, keep 360 60-second averages, keep 576 300-second averages, etc. It looks like for the 24-hour view it uses the 5-minute (300/576) definition.

---

<div class="post-metadata">

**Author:** ![TastefulBass](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tastefulbass/32/98225_2.png) [@TastefulBass](https://community.homey.app/u/TastefulBass)\
**Post date:** [January 26, 2024, 12:24pm UTC](https://community.homey.app/t/max-size-insights-data/102313/5 "2024-01-26T12:24:15Z")

</div>

Thank you, good to know
