> On Jan 21, 2015, at 1:53 AM, Jan Muller <
mull...@gmail.com> 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.