I think I understand the lazy loading of data for ROS locally, but I am unclear if the same applies on Cloud Platform while using query-based sync.
Let’s say we have a hypothetical nested object hierarchy like Country->State->County->City->Person. Each is a Realm object with a 1:N IList of its children. A User is associated with a Country. When the User logs-in, we do a query-based sync to load the info for their Country. Does Realm then load the entire object hierarchy below that country at that time? Or is that lazily loaded?
I would be fine with Country, State, County, and even City being pre-loaded. But I do not want every Person in the Country pre-loaded. The concern is obviously memory usage, load performance, etc. Should we break the forward relationship between City and Person? Is this a non-issue because of lazy loading? Is there some entirely different way to handle the situation?
Thanks in advance for your insight!