Hi, Does CBL properly unique objects it has fetched from the database? That is, if you fetch a to-one child object 'A' by referencing its property from a parent object and then you fetch a to-many array of child objects of the same type, possibly even from a different parent object, and one of them is also object 'A', will object 'A' have the same pointer address in both cases? Or will there be two instances of object 'A' in memory? Both object 'A' would have the same document ID in the database, but I want to make sure that they are actually the same object in memory. If not, then I would need to keep a separate object store cache and every time I fetch from the database, I'd have to check to see if I have an object with a matching document ID already in memory and use that one instead of the one fetched from the database. Which would be a real pain.
Thanks, Brendan -- 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/4db3bec6-9659-487e-bd5e-2bbbd9734c55%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
