Correct badger file loading mode documentation.

This commit is contained in:
max furman 2020-05-28 17:25:10 -07:00
parent 30bfba48d5
commit c4f1eea5dc

View file

@ -44,7 +44,7 @@ more info). Below are a few examples for supported databases:
"type": "badger", "type": "badger",
"dataSource": "./.step/db", "dataSource": "./.step/db",
"valueDir": "./.step/valuedb" "valueDir": "./.step/valuedb"
"badgerValueLogLoadingMode": "MemoryMap" "badgerFileLoadingMode": "MemoryMap"
}, },
... ...
}, },
@ -60,7 +60,7 @@ more info). Below are a few examples for supported databases:
will need to set it explicitly until it becomes the default. will need to set it explicitly until it becomes the default.
* `dataSource` - path, database directory. * `dataSource` - path, database directory.
* `valueDir` [optional] - path, value directory, only if different from `dataSource`. * `valueDir` [optional] - path, value directory, only if different from `dataSource`.
* `badgerValueLogLoadingMode` [optional] - can be set to `FileIO` (instead of the default * `badgerFileLoadingMode` [optional] - can be set to `FileIO` (instead of the default
`MemoryMap`) to avoid memory-mapping log files. This can be `MemoryMap`) to avoid memory-mapping log files. This can be
useful in environments with low RAM. Make sure to use `badgerV2` as the useful in environments with low RAM. Make sure to use `badgerV2` as the
database `type` if using this option. database `type` if using this option.