2013/7/29 Norbert Hartl <norb...@hartl.name>:
> Am 29.07.2013 um 15:46 schrieb "Esteban A. Maringolo" <emaring...@gmail.com>:
>> Is it a good practice to use the OID value (anInteger) as an
>> "external" identifier of your domain object?
>> ...
>> I like OID/UUIDs, and I don't want to duplicate that logic in my app.
>>
> I think for your purpose OID will be fine but I'm not sure. I use UUIDs. You 
> can instruct mongo to use a UUID instead of an OID. Works flawlessly.

How do you do that? Because OID's are a BSON native artifact,
efficient in terms of storage and lookup (a 12 byte integer in the
end...)

Is there a way to have an smaller UUID? more like the first eight
chars of a Git commit or similar...

Regards,

Esteban A. Maringolo

Reply via email to