IDs are unchangeable, and are the only thing guaranteed unique within
a db. so - depends what your candidate-ids are. Say emails or
phone-numbers are unique. people names, book names, ... names in general
are not. u can combine a name with some uuid though.. up to u.

On Mon, 05 Aug 2013 06:47:06 -0500
Dan Santner <[email protected]> wrote:

> I have always been a fan of UUID's over some coded mechanism.  I'll
> tell you why.  When you are running multiple environments you can
> easily just copy a doc from one environment to another without
> collisions.  Use a description code or something if you want a code
> of some sort that encodes information about the doc but keep your
> id's as uids.  That's my two cents. On Aug 5, 2013, at 4:08 AM,
> Oliver Schmidt <[email protected]> wrote:
> 
> > I'm building a couchapp for collecting recipes with kanso. How
> > shall I choose the document IDs? Using a slug of the recipe name
> > would create nice URLs but how can I prevent recipes with the same
> > name from colliding (there might be more than one recipe for apple
> > pie)? Shall I use UUIDs instead?
> > 
> > Regards Oliver
> 

Reply via email to