On May 4, 2014, at 4:10 AM, Ragu Vijaykumar <[email protected]> wrote:
> I was wondering if there might be any bad side-effects if I were to create an > NSCache for my read-only CBLModels? That sounds reasonable. I don't think there would be any bad side effects, other than increased memory usage of course. CBLDatabase does something similar, keeping an NSMutableSet of models with unsaved changes so they won't be dealloced before they can be saved. > the models have strong pointers to the CBLDocuments, so as long as they > aren't dealloc'd, the documents won't be evicted from the cache. Right. --Jens -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/EF4D53AB-9430-4276-88C0-7ADE766A9F35%40couchbase.com. For more options, visit https://groups.google.com/d/optout.
