>
> On Aug 29, 2013, at 5:08 PM, Sven Van Caekenberghe <
[hidden email]> wrote:
>
>>
>> On 29 Aug 2013, at 16:51, Esteban Lorenzano <
[hidden email]> wrote:
>>
>>> hi
>>>
>>> well... I've never been happy on using the UUID generator for my keys, but is the fastest option I found.
>>> There are, of course, alternatives:
>>>
>>> 1) Using your own number generator (sequential, or whatever). Problem with that is that is image based, then you need a persistence strategy... then you are slow.
>>> 2) then you can use your own procedure in mongo... with same problem than (1)
>>> 3) you could use timestamp. but TimeStamps are slow :(
>>>
>>> anyway... I open to ideas :)
>>>
>>> in the mean time, you can check if your UUID generator is using the primitive or not. In you are not, you have more possibilities of having a collision.
>>
>> Yes, the Smalltalk code (type 4 UUID) is just a random number that is computed in a complex way.
>>
>> What does the primitive actually do ? Is it different ?
>
> the primitive uses the clock ticks to produce an UUID... you shouldn't have repeated numbers that way... but well, it depends on the platform implementation also.