openhab-addons/bundles/org.openhab.persistence.mapdb
Holger Friedrich 639a1cb263
Prepare for OH 5.0.0 (#17906)
* Switch to 5.0.0-SNAPSHOT
* Fix spotless after unleash
* resolve itest runbundles

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-12-15 20:30:05 +01:00
..
src [persistence] Implement HistoricItem.getInstant (#17578) 2024-10-25 22:59:22 +02:00
NOTICE
pom.xml Prepare for OH 5.0.0 (#17906) 2024-12-15 20:30:05 +01:00
README.md

MapDB Persistence

The MapDB persistence service is based on a simple key-value store that only saves the last value. MapDB is useful for restoring items that have the restoreOnStartup strategy because other persistence options have some drawbacks if only the last value is needed on restarts.

Some disadvantages of other persistence services compared to MapDB are that they:

  • grow in time
  • require complex installs (influxdb, jdbc, jpa)
  • rrd4j cannot store all item types (only numeric types)

It is only possible to query the last value and not other historic values because the MapDB persistence service can only store one value per item.