[JDBC/MariaDB] Persistence of only actual state?

Hi,

I’m using mariadb as persistence unit via jdbc.
Now every change of an item state gets stored as new row in the item’s database table.
Is there an easy way to store only the actual state of an item in the item’s sql table?

Thanks, Florian

I doubt it since there is no config option that would limit this: JDBC - Persistence Services | openHAB

If you only want the current state to be persisted you can use mapDB (this is what it does) MapDB - Persistence Services | openHAB