We have a few questions about CBL and hope someone can provide some clarity
- Are Couchbase Swift objects lazy-loaded. We are migrating from MongoDB Atlas Realm and that’s a feature which became important to our use case. To provide context, here is how an object is defined in Realm
Realm uses lazy loading and memory mapping with each object reference pointing directly to the location on disk where the state is stored. This exponentially increases lookup and query speed as it eliminates the loading of state pages of disk space into memory to perform calculations. It also reduces the amount of memory pressure on the device while working with the data layer.
Apple implements lazy-loading with LazyVStack as an example and here’s a pretty accurate overview of the technology
-
How are notifications presented? Suppose we are observing a collection of Users. A user changes his favorite food from Taco to Pizza. How does the app receive that? Is the object that change presented, or possibly a row # in the dataset so specific UI elements can be updated?
-
With Realm, we could use Partition Sync or Flex Sync. Flex sync would enable the app to subscribe to certain objects only. Does Couchbase have that functionality or is it all or none. e.g. is everything sync’d?
Thank you - please let me know if anything needs clarity
Jay