| 1 |
# Maintain transaction logs in memory rather than on disk |
| 2 |
set_flags DB_LOG_INMEMORY |
| 3 |
|
| 4 |
# Set in-memory transaction log cache (10MB) |
| 5 |
set_lg_bsize 10485760 |
| 6 |
|
| 7 |
# Set the maximum size of log files (40MB) |
| 8 |
set_lg_max 41943040 |
| 9 |
|
| 10 |
# Automatically remove log files as soon as they are no longer needed |
| 11 |
set_flags DB_LOG_AUTOREMOVE |
| 12 |
|
| 13 |
# Do not write or synchronously flush the log on transaction commit |
| 14 |
set_flags DB_TXN_NOSYNC |
| 15 |
|
| 16 |
# Set the size of the shared memory buffer pool (gbytes, bytes, ncache) |
| 17 |
set_cachesize 0 524288000 1 |
| 18 |
|