--- 93_DbLog.pm 2021-03-27 10:43:08.301118729 +0100
+++ 93_DbLog.pm 2021-03-27 11:31:53.728334894 +0100
@@ -274,6 +274,8 @@
"colValue ".
"DbLogSelectionMode:Exclude,Include,Exclude/Include ".
"DbLogType:Current,History,Current/History,SampleFill/History ".
+ "SQLiteJournalMode:WAL,off ".
+ "SQLiteCacheSize ".
"dbSchema ".
"defaultMinInterval:textField-long ".
"disable:1,0 ".
@@ -3232,8 +3234,12 @@
$dbhp->do("PRAGMA synchronous=FULL"); # For maximum reliability and for robustness against database corruption,
# SQLite should always be run with its default synchronous setting of FULL.
# https://sqlite.org/howtocorrupt.html
- $dbhp->do("PRAGMA journal_mode=WAL");
- $dbhp->do("PRAGMA cache_size=4000");
+ if ( AttrVal( $name, "SQLiteJournalMode", "WAL" ) eq "off" ) {
+ $dbhp->do("PRAGMA journal_mode=off");
+ }else{
+ $dbhp->do("PRAGMA journal_mode=WAL");
+ }
+ $dbhp->do("PRAGMA cache_size=". AttrVal( $name, "SQLiteCacheSize", "4000" ));
}
return 1;
@@ -7635,6 +7641,40 @@
+ attr <device> SQLiteCacheSize <number of memory pages used for caching>
+
+ attr <device> SQLiteJournalMode [WAL|off]
+
+ attr <device> SQLiteCacheSize <Anzahl Memory Pages für Cache>
+
+ attr <device> SQLiteJournalMode [WAL|off]
+