> On Jun 1, 2015, at 7:55 AM, Florion COIFFÉ <[email protected]> wrote:
> 
> 1. since we don't have any control over it, is it truly unique in any 
> situation ? 

The class documentation says "An NSManagedObjectID object is a compact, 
universal identifier for a managed object. This forms the basis for uniquing in 
the Core Data Framework.” To me that says it’s a UUID, so yes it’s unique.

> 2. the generated string's length for the ID is 59. Is too long in terms of 
> memory on the server or not at all ? (I saw the shorter the better in terms 
> of memory footprint)

I believe 128 bits of randomness is considered enough for uniqueness, and you 
can represent that in ~24 ASCII characters using base64 encoding. So 59 bytes 
seems kind of long.

I don’t know if Core Data can use other sources of object IDs besides 
NSManagedObjectID, though. Pasin might know.

—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/0FCB6D48-BCCC-4B45-95EF-1BDB063FBF79%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to