Optimized

data class Optimized(val minSizeToSplit: Long, val minSizeToStoreInFile: Long = 1024, val maxRoomsToInsert: Int = 100) : InitialSyncStrategy

Optimized. First store the request result in a file, to avoid doing it again in case of crash.

Constructors

Link copied to clipboard
constructor(minSizeToSplit: Long, minSizeToStoreInFile: Long = 1024, maxRoomsToInsert: Int = 100)

Properties

Link copied to clipboard

Max number of rooms to insert at a time in database (to avoid too much RAM usage).

Link copied to clipboard

Limit to reach to decide to split the init sync response into smaller files. Empiric value: 1 megabytes.

Link copied to clipboard

Limit per room to reach to decide to store a join room ephemeral Events into a file. Empiric value: 1 kilobytes.