by the way, I wouldn’t do restoreOnStartup with MySQL.. it could be a bit slow
use a dual persistence setup and restore from a MapDB
read more on multi-tier persistence setups here: Good Tutorial On Persistence (RRD4J and JDBC-MYSQL)? - #5 by rlkoshak , courtesy of @rlkoshak
T1: MapDB (for restore)
T2: InfluxDB (for graphs with Grafana)
T3: MySQL (if needed)