So with the default configuration, pimatic checks every 2h the database for expired entries and deletes them (in memory) and each second time (every 4h) the changes are synced to disk (deleted and new entries).
I have the impression that nothing is written in the DB anymore, for testing purpose i have reduce deleteExpiredInterval and diskSyncInterval to 1 minute and 3 minutes
Thanks for reporting. The min deleteExpriedInterval was 5min (you should have a warning about that in your log), If it is less than that it is automatically set to 5min.
I can’t see any message in pimatic log about the DB sync and nothing on the timestamp of the DB : so my impression is that nothing will go to disk (pimatic-database.sqlite-wal remains empty too)
In addition here was an bug, so that the disk sync wasn’t triggered if diskSyncInterval was not a multiple of deleteExpriedInterval (what was true in your case, because the auto set to 5min).
I lowered the lower bound to 1min and fixed the bug. Could you retest with 0.8.39?
EDIT: One more fix in 0.8.40!