Real-time recording operations

I am puzzled by Realm write transactions. Do I have to make all the changes to the objects in the write transaction, or can I just make a few changes and then write everything to disk?

The first option seems a little redundant and, of course, tedious.

+4
source share
1 answer

(Disclaimer: I work at Realm)

It is right! When an object is added to the object Realm(), it can only be changed after a write transaction.

. a Realm() , , ( , ).

, , , , , , .

+5

Source: https://habr.com/ru/post/1607174/


All Articles