Why not do both.  I've always preferred letting the database generate
an auto primary key (id in django) even if my usage is primarily a
different column  for key.  Storing an int isn't wasting much space,
what do you have to lose?  I've got a users object for example that
requires a unique email address as username.  That column is declared
unique and indexed.  I use the id internally, and the email address
for logins, etc.  I assume an integer index is a little faster, but
mainly I do it because it doesn't rely on user data that may for some
unknown reason change.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to