On Nov 26, 9:00 am, Jeff FW <[EMAIL PROTECTED]> wrote:
> If you already have a unique key on the project's name field, then
> you're good to go--no duplicates will ever get inserted.  No need to
> do any filtering ahead of time--just put each save() in a try/except
> block that catches the error you get and does nothing.

This will obviously work but since the OP says that the number of
projects grows by a few new ones every week, this approach will result
in a steadily increasing number of database calls and most of those
calls will just try to insert duplicates before failing.
--~--~---------~--~----~------------~-------~--~----~
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