Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mapdb] Add some documentation #13964

Merged
merged 1 commit into from
Dec 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.