Realm database size increases when updating more than 100 of data via the socket

Realm database size increases when updating more than 100 of data via the socket.

how to further proceed please help me

@Saravanan_M Likely you are doing something on the background thread that is ballooning the file size - see here: Overview (Realm 10.10.1)

i did for example like that

socket.on(Socket.EVENT_CONNECT, Emitter.Listener { args: Array < Any ?> -> }).on("server") {
    args: Array ->
        val obj = args[0] as JSONObject
    val person = Person()
    person.id = obj.getInt("id")
    person.name = obj.getString("name")
    Realm.getDefaultInstance().use {
        realm -> realm.executeTransaction {
            realm1 -> realm1.copyToRealmOrUpdate(person)
        }
    }
}