On 1/29/07, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> On 1/29/07 7:22 AM, Russell Keith-Magee wrote:
> > I've just created two new tickets - #3389 and #3390.
>
> I'm +1 on #3390 (the ``DEFERRABLE INITIALLY DEFERRED`` bit); that makes a few
> other bulk-insert type tasks besides deserialization much easier.

Agreed. It's a biggish change though, so i'd like to get some more
community opinion or a blessing from Adrian before I push this in.

> do the same thing seems a little weird. I guess I'd say I'm +0 unless anyone
> can think of a better way...

Yes, they do the same thing, but only if you actually have access to
the (previously saved) instances john and fred. If you only have the
primary key value as you do in deserialization, its:

    article.author_set = Author.objects.filter(pk_in=[4,7])

which hits the database, which is problematic if the objects haven't
been saved yet.

Yours,
Russ Magee %-)

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

Reply via email to