Skip to content

Commit

Permalink
[mapdb] Add some documentation (openhab#13964)
Browse files Browse the repository at this point in the history
This is based on the original OH1 documentation.

Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn authored and borazslo committed Jan 8, 2023
1 parent cf79b29 commit 489b9c4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions bundles/org.openhab.persistence.mapdb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# MapDB Persistence

The [MapDB](https://mapdb.org/) persistence service is based on 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.

0 comments on commit 489b9c4

Please sign in to comment.