2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-02 19:15:31 +00:00

93_DbLog: contrib 5.5.2

git-svn-id: https://svn.fhem.de/fhem/trunk@26825 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
nasseeder1 2022-12-09 22:22:54 +00:00
parent 23bcb19d44
commit 91d9bbd0dd

View File

@ -2929,10 +2929,10 @@ sub _DbLog_SBP_onRun_Log {
} }
else { else {
if(defined $rowhref) { # nicht gespeicherte Datensätze ausgeben if(defined $rowhref) { # nicht gespeicherte Datensätze ausgeben
Log3 ($name, 4, "DbLog $name - The following data are faulty and were not saved:"); Log3 ($name, 2, "DbLog $name - The following data are faulty and were not saved:");
for my $df (sort {$a <=>$b} keys %{$rowhref}) { for my $df (sort {$a <=>$b} keys %{$rowhref}) {
Log3 ($name, 4, "DbLog $name - $rowhref->{$df}"); Log3 ($name, 2, "DbLog $name - $rowhref->{$df}");
} }
} }
@ -7951,17 +7951,19 @@ return;
<a id="DbLog-attr-bulkInsert"></a> <a id="DbLog-attr-bulkInsert"></a>
<li><b>bulkInsert</b> <li><b>bulkInsert</b>
<ul> <ul>
<code>attr &lt;device&gt; bulkInsert [1|0] <code>attr &lt;device&gt; bulkInsert [1|0] </code><br><br>
</code><br><br>
Toggles the Insert mode between Array (default) and Bulk. This Bulk insert mode increase the write performance Toggles the insert mode between "Array" and "Bulk". <br>
into the history table significant in case of plenty of data to insert, especially if asynchronous mode is The bulk mode leads to a considerable performance increase when inserting a large number of data records into the
used. history table, especially in asynchronous mode.
To get the whole improved performance, the attribute "DbLogType" should <b>not</b> contain the current table To get the full performance increase, in this case the attribute "DbLogType" should <b>not</b> contain the
in this use case. <br> current table. <br>
In contrast, the "Array" mode has the advantage over "Bulk" that faulty data records are extracted and reported in the
log file. <br>
(default: 0=Array)
</ul> </ul>
</li>
</ul> </ul>
</li>
<br> <br>
<ul> <ul>
@ -9588,16 +9590,18 @@ attr SMA_Energymeter DbLogValueFn
<a id="DbLog-attr-bulkInsert"></a> <a id="DbLog-attr-bulkInsert"></a>
<li><b>bulkInsert</b> <li><b>bulkInsert</b>
<ul> <ul>
<code>attr &lt;device&gt; bulkInsert [1|0] <code>attr &lt;device&gt; bulkInsert [1|0] </code><br><br>
</code><br><br>
Schaltet den Insert-Modus zwischen "Array" (default) und "Bulk" um. Der Bulk Modus führt beim Insert von sehr Schaltet den Insert-Modus zwischen "Array" und "Bulk" um. <br>
vielen Datensätzen in die history-Tabelle zu einer erheblichen Performancesteigerung vor allem im asynchronen Der Bulk Modus führt beim Insert von sehr vielen Datensätzen in die history-Tabelle zu einer erheblichen
Mode. Um die volle Performancesteigerung zu erhalten, sollte in diesem Fall das Attribut "DbLogType" Performancesteigerung vor allem im asynchronen Mode. Um die volle Performancesteigerung zu erhalten, sollte in
<b>nicht</b> die current-Tabelle enthalten. <br> diesem Fall das Attribut "DbLogType" <b>nicht</b> die current-Tabelle enthalten. <br>
Demgegenüber hat der Modus "Array" gegenüber "Bulk" den Vorteil, dass fehlerhafte Datensätze extrahiert und im
Logfile reported werden. <br>
(default: 0=Array)
</ul> </ul>
</li>
</ul> </ul>
</li>
<br> <br>
<ul> <ul>