#23646 Enhancement: Updating multiple values in a single sql update using Django ORM

39 views
Skip to first unread message

Anshuman Aggarwal

unread,
Oct 17, 2014, 2:12:26 PM10/17/14
to django...@googlegroups.com
Posting this Django Project ticket that I opened to track the enhancement request to update multiple rows with different values for the same field for a particular Django queryset in a single SQL query without having to write raw SQL. 


A possible SQL solution is outlined here but it should ideally be supported via the Django Manager I feel and not via a Raw SQL which becomes much harder to maintain.


Thoughts anyone?

Russell Keith-Magee

unread,
Oct 17, 2014, 7:17:13 PM10/17/14
to Django Users
Hi Anshuman,

Firstly, a question like this is probably better suited to django-developers - that's the list where we discuss proposed modifications to Django itself. You're more likely to get the attention you need on that list.

That said - I'm not sure I see the benefit here. I've left a comment on the ticket.

Yours
Russ Magee %-)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/812f359d-13cb-43c1-9515-52632b663911%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages