couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan Lehnardt <...@apache.org>
Subject Re: couch_util:new_uuid problem?
Date Sat, 04 Oct 2008 08:10:27 GMT

On Oct 4, 2008, at 2:53 , Ayende Rahien wrote:
>
> B) What is the meaning of "_local" documents? I couldn't find  
> anything about
> it.

A special kind of documents for internal use that do not get  
replicated. They are sorta private.

Cheers
Jan
--
>
>
> On Sat, Oct 4, 2008 at 2:49 AM, Ayende Rahien <ayende@ayende.com>  
> wrote:
>
>> Looking at the method implementation, it looks like there might be a
>> problem here.
>>
>> new_uuid() ->
>>    list_to_binary(to_hex(crypto:rand_bytes(16))).
>>
>> In particular, we aren't actually guaranteed to have a unique value.
>> You can read more about what needs to be done to get unique guids:  
>> here:
>> http://blogs.msdn.com/oldnewthing/archive/2008/06/27/8659071.aspx
>>
>>


Mime
View raw message