Generating a new database from the SQL dump was so slow that - at that speed - it would have taken some hours to a day to generate the Database again. My domoticz.db is ~57MB big... is that normal for a Domoticz-System with ~260 devices (not separate devices, also counting multiple entries for different functions of 1 device)?
One culprit is for sure the 7 day sensor log. I found out, that for some sensors (mostly Temperature) this detailed logfile goes back to around 1st of December 2015. Having all values stored since then is for sure causing a gigantic database size. I first found the database table "LightningLog", but this one seems to contain only the last 30 days, so I guess that's the 30 day switches protocol - with ~120.000 entries. I started deleting everything except the last ~20%, already this is running for more than one hour so far ( not on the Raspy, on my Desktop PC).
So... in which table are the detailled sensor values stored? is there a possibility to delete everything but the last 7 days without losing the monthly/yearly statistics?
Edit: Just found it. "Temperature" contains ~530.000 Entries

So I guess the xxx_Calendar Tables contain the values for the monthly and yearly graph then?