On Mon, Oct 18, 2010 at 6:31 PM, brix <rainerhar...@googlemail.com> wrote:

> Hello.
>
> Assume I have publications and authors. Like here:
> http://www.djangoproject.com/documentation/models/many_to_many/
>
> Now I want to add authors to more than just one publication. Lets say
> 1000 or more publications.
>
> Is there a more efficient way of adding the authors once for each
> publication, using an iterator and a loop?
>
> For 1000 publication I would have a minimum of 1000 queries send to
> the database. Is it posible to reduce this somehow?


http://code.djangoproject.com/ticket/4260


-- 
Marc

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

Reply via email to