org.mapdb / DBMaker / Maker / fileChannelEnable

fileChannelEnable

fun fileChannelEnable(): Maker

Enable FileChannel access. By default MapDB uses {@link java.io.RandomAccessFile}. whic is slower and more robust. but does not allow concurrent access (parallel read and writes). RAF is still thread-safe but has global lock. FileChannel does not have global lock, and is faster compared to RAF. However memory-mapped files are probably best choice.