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
fun Optimized(    minSizeToSplit: Long,     minSizeToStoreInFile: Long = 1024,     maxRoomsToInsert: Int = 100)

Properties

Link copied to clipboard
val maxRoomsToInsert: Int = 100

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

Link copied to clipboard
val minSizeToSplit: Long

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

Link copied to clipboard
val minSizeToStoreInFile: Long = 1024

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