Database size rapid fluctations. Is this normal?

Information from @thebearmay's Hub Information Driver shows rapid and significant up and down fluctuations of the database size on a C4 running 2.3.5.138.

Is this normal or is something odd going on?

|dbSize|3|MB||DEVICE||Hub info V3|2023-05-13 09:34:16.452 EDT|
|dbSize|9|MB||DEVICE||Hub info V3|2023-05-13 09:25:15.566 EDT|
|dbSize|3|MB||DEVICE||Hub info V3|2023-05-13 09:16:13.384 EDT|
|dbSize|5|MB||DEVICE||Hub info V3|2023-05-13 09:07:12.574 EDT|
|dbSize|9|MB||DEVICE||Hub info V3|2023-05-13 08:58:11.668 EDT|
|dbSize|5|MB||DEVICE||Hub info V3|2023-05-13 08:49:10.088 EDT|
|dbSize|7|MB||DEVICE||Hub info V3|2023-05-13 08:40:09.044 EDT|
|dbSize|3|MB||DEVICE||Hub info V3|2023-05-13 08:31:08.353 EDT|
|dbSize|4|MB||DEVICE||Hub info V3|2023-05-13 08:22:07.059 EDT|
|dbSize|7|MB||DEVICE||Hub info V3|2023-05-13 08:13:06.265 EDT|

Normal.

3 Likes

Thanks for letting me know, but I have to say that I find it hard to believe or understand.

1 Like

Changes in variables, data, logs contribute to the fluctuations..

4 Likes

Yep and the periodic cleanup job to remove stale data.

1 Like

So perhaps one could relate this to defragging a hard drive?

Wow - I haven't heard that term in a long while.

I would say if you are not making any changes the majority of the size are the logs. If you want to reduce the size try disabling most logging.

Logs are not stored the hub database, so that is unlikely to affect this at all. Most changes are likely related stored device events, then either pruning according to your settings or regular database maintenance, plus other data stored in the database like app or driver state. I wouldn't worry about regular, periodic changes like the ones graphed above myself.

3 Likes

I considered the events part of logging.

Hmm I always thought the logs were part of the overall database... Good to know it's not.

1 Like