Ha, I know the host uuids request trick.
But it doesn't solve my problem, I need to generate it offline.
Right now I use Java API to generate UUID and strip all "-" in it to
make it looks like an _id generated by CouchDB.
But I wonder if this approach is good enough, or there are some better
way to make my _id more appropriate.
Because I don't know if Couch plays any trick on the auto generated
_id that could make some different to the internal storage.

2011/2/21 Bill Barry <[email protected]>:
> On Sun, Feb 20, 2011 at 11:19 AM, sleepnova <[email protected]> wrote:
>
>> Hi,
>>
>> Does any one know what is the CouchDB _id generation rule?
>> I'd like to generate it from my client.
>>
>>
> Not to directly answer your question because I don't know how CouchDB
> generates the UUIDs, but any UUID generator should work. You can also
> request them from the host using a GET to /_uuids  or if you want 10 of
> them   /_uuids?count=10
>
> Bill
>

-- 
- sleepnova

Reply via email to