Update/Write really slow when db grows


#1

Hello, I’m using a query based database in my app because I need the fine-grained permission system. I still need a full-sync experience so when I open the realm I do something like that to subscribe to all the data on cloud:

var realm = new Realm(config)

var obClass1 = realm.objects('obClass1')
obClass1.subscribe()

I have various collection of x00k objects with relations between them. I can read data very fast.

The write operation, however, is really slow and so my app (the UI updates when the transaction is ended and a listener get the notification of changes).

Is there some better approach to my situation? How can I speed up the write operation?