Delayed BI File Write (-Mf)
- Last Updated: March 30, 2020
- 2 minute read
- OpenEdge
- Version 12.2
- Documentation
Delayed BI File Write (-Mf)
Use Delayed BI File Write (-Mf) to improve performance on a heavily loaded
system.
| Operating system and syntax | UNIX / Windows |
-Mf
n
|
||
|---|---|---|---|---|
| Use with | Maximum value | Minimum value | Single-user default1 | Multi-user default |
| Database Server | 32,766 | 0 | 0 | 3 |
- n
-
The value in seconds of the delay before the OpenEdge database engine synchronously writes out to disk the last before-image (BI) file records at the end of each transaction. It also specifies the interval that the broker process wakes up to make sure all BI file changes have been written to disk. The default is 3 for single-user batch jobs and for multi-user databases. Otherwise, the default is 0.
Using the Delayed
BI File Write (-Mf) parameter does not reduce
database integrity. However, if there is a system failure, it is possible the last few
completed transactions will be lost (never actually written to the BI file).
When running with full integrity, at the end of each transaction OpenEdge does a synchronous write to disk of the last BI file block. This write guarantees that the completed transaction is recorded permanently in the database. If the user is notified that the transaction has completed and the system or database manager crashes shortly after, the transaction is not lost.
Do not set the -Mf parameter on a lightly loaded system with little
database update activity. Under these conditions, the extra BI write is very important and
does not impact performance. On a heavily loaded system, however, the BI write is less
important (the BI block will be written to disk very soon anyway), and has a significant
performance penalty. Setting the -Mf parameter to delay this extra BI write
saves one write operation per transaction, which can significantly improve performance. The
extra BI file write is delayed by default for batch jobs.
If the -Mf parameter is set to a positive value, the last BI file record
is only guaranteed to be written out to disk when a user logs out, or when the server or
broker process terminates normally. On multi-user systems, the n argument
determines the maximum length of time in seconds during which completed transactions can be
lost.
The Delayed BI File Write (-Mf) parameter
may be modified while your database is online using PROMON or through the _DbParams VST.