Logging in 2.7 and up : "Write buffer size"

Logging in 2.7 and up : "Write buffer size"

by Luis de Vasconcelos -
Number of replies: 1

In Moodle 2.7 and up under Site administration / Plugins / Logging / Standard log there is the "Write buffer size" setting (logstore_standard | buffersize). It defaults to the value of 50. But 50 what? Megabytes?

What is this write buffer?

The documentation link at the bottom of that page in Moodle points to https://docs.moodle.org/27/en/admin/setting/logsettingstandard, which does not exist.

Neither does: https://docs.moodle.org/27/en/admin/setting/logsettinglegacy  or https://docs.moodle.org/27/en/admin/setting/managelogging

And https://docs.moodle.org/dev/Logging_2 doesn't contain any info about that "Write buffer size". So, what is this "Write buffer size"? And how should we use it? When should an admin increase or decrease that default 50 value?

Average of ratings: -
In reply to Luis de Vasconcelos

Re: Logging in 2.7 and up : "Write buffer size"

by Ricardo D -

Number of log entries inserted in one batch database operation, which improves performance.


Path: admin/tool/log/store/database/lang/en/logstore_database.php

$string['buffersize_help'] = 'Number of log entries inserted in one batch database operation, which improves performance.';