DittoDBConfig
public class DittoDBConfig
Configuration for the database backend that DittoStore uses. Currently this is LMDB.
-
The maximum size of the database.
Declaration
Swift
public let mapSize: size_t -
Initializes a
DittoDBConfigobject that can be passed to theDittoKitinitializer.Declaration
Swift
public init(mapSize: size_t = 1048576 * 200)Parameters
mapSizeThe 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.
DittoDBConfig Class Reference