Azri
(Azri Azmi)
2
Hi @X_Jia,
Here’s how this document explains the Frozen Architechture:
- Frozen by default: All objects are now frozen. Unlike live objects, frozen objects do not automatically update after database writes. You can still access live objects within a write transaction, but passing a live object out of a write transaction freezes the object.
- Thread-safety: All realm instances, objects, query results, and collections can now be transferred across threads.
- Singleton: You now only need one instance of each realm. No need to open and close realms on individual threads.
There’s a focus on immutability for better control over object state & as you mentioned, allows for thread-safety.
There’s a video and transcription of a meetup that presents the topic at length.