openhab-addons/bundles/org.openhab.persistence.mapdb
Holger Friedrich b6cbc7ff82
[mapdb] Explicitly set date format for serialization (#16657)
Between Java 17 and Java 21, serialization of Date has changed due to CLDR 42 which uses a narrow non-breaking space.
To ease switching JDK versions, the serialization format is explicitly set to the Java 17 format when GsonBuilder is used.

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
2024-04-28 20:14:31 +02:00
..
src [mapdb] Explicitly set date format for serialization (#16657) 2024-04-28 20:14:31 +02:00
NOTICE Codebase as of c53e4aed26 as an initial commit for the shrunk repo 2020-09-20 23:57:58 +02:00
pom.xml Apply spotless after release (#16097) 2023-12-22 23:30:38 +01:00
README.md [mapdb] Fix "a" typo and use "-" for bullets in docs (#13966) 2022-12-16 11:22:48 +01:00

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.