Persistence questions

Hi, I have some questions about persistence:

  1. Is it possible to write item state to 2 persistences ? For example influx and jdbc ?
  2. Which persistence i database do you recommend for fast chard drawing with quite bug amount of data for example for item which is stored every 5 minutes for a year (energy consumption). System is raspberry Pi 4 with 8GB ram and Ubuntu 22.04.


  1. Yes, absolutely, you can use as many persistence services as you want with individual strategies per item and persistence service.

  2. rrd4j is fast and thrifty, but it loses accuracy the older the data gets (i.e. it will create average values over sets of values to save space) InfluxDB is specialized to time series, but for a big amount of data even InfluxDB will need much time and RAM.

  3. Why Ubuntu?

I just like Ubuntu and currently have in my installation. What can you recommed instead ubuntu and why ?

In addition to the statement of @Udo_Hartmann.

When trying to plot the data of every 5 minute-step over the last year each persistence service will take some time, because that are more then 100K datapoints!
Speaking of rrd4j, this system is build to store data for a fixed timeframe ( the default setup in openHAB uses 10 years).
If you create an own setup the choice of maximim timeframe and the used consolisation function (the way how the data is compressed ) is up to you.
As I am interested in data for 1 year only, I use an archive setup which shows the data for every minute for a day. Additionally I use archives to show data for the last week, last month and last year, each with a reasonable increased timestep and a consolidationfunction that fits with the logged data.

Well, for Raspberry Pi, the openHABian image is best practice (i.e. Raspberry Pi OS lite bullseye for now) and brings lots of additional useful stuff.
Ubuntu is known to be problematic in relation with openHAB - or you also can take it the other way, openHAB is known to be less stable with Ubuntu…)

If you don’t have issues, go for it :slight_smile:

Not quite. Ubuntu works just fine with openHAB. It’s openHABian that has problems working on Ubuntu.

1 Like

Thanks for clarifying, somehow I mixed that up, so good to know there is no “real” issue with Ubuntu.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.