> On Jan 21, 2015, at 1:53 AM, Jan Muller <[email protected]> wrote:
> 
> Hi, I am just thinking about generating _id like a prefix + uuid ..., where 
> prefix is a model type. I think it could be better, because i would have 
> sorted documents by model type in main index so i can query on all_docs view. 
> Are there any cons with this approach? 

Sure, there’s no problem with generating your own doc IDs. All you do is call 
documentWithID instead of newDocument.

—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/9C50B028-556D-48FC-8695-81D39092BF28%40mooseyard.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to