ditto-lib / live.ditto / DittoDBConfig

DittoDBConfig

class DittoDBConfig

Configuration for the database backend that DittoStore uses.

Parameters

mapSize -

the size of the memory map to use. The size should be a multiple of the OS page size. The default is 200 * 1048576 bytes (200MB). The size of the memory map is also the maximum size of the database.

Info about:

Constructors

<init>

DittoDBConfig(mapSize: Int = 1048576 * 200)

Configuration for the database backend that DittoStore uses.

Properties

mapSize

val mapSize: Int

the size of the memory map to use. The size should be a multiple of the OS page size. The default is 200 * 1048576 bytes (200MB). The size of the memory map is also the maximum size of the database.