--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/c650999b-7a0d-49e8-aa0d-84e789b2f833%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-developers/Hcsh4r9_mHg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAJxq84-ZRUqgoCrdH9ORU5gxhD4WMSU64orrw9nfKwfkzXDGYg%40mail.gmail.com.
UPDATE books_book
SET
price = 10 where pk = 1, price = 25 where pk = 2 .....
Such a single SQL statement would also have similar benefits to having much less data to prepare, send and interpret vs having multiple update queries being collated into a single transaction.
--
You received this message because you are subscribed to a topic in the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-developers/Hcsh4r9_mHg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAFkDaoQi3z62emT4Dk1hAvpM5sSUshbFSoOqumA0kZymLURO9A%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAK-d5daWgeOOBAOgTg9nWRhQnk%3DB_TvhpRTLPy2Sr-AqsiOxng%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAFRnB2XvKC_oHKymGg5J05kQF9RgSmp0hWPVgpU6%2BbmiNZ-W%2BQ%40mail.gmail.com.
Hi Russ,Notwithstanding the performance, the current solution of doing 1000 updates in a single transaction using ORM appears to be (in pseudocode below):<start manual transaction><Loop through all update values><Issue individual django update statement><end manual transaction>as opposed do:<Issues multiple value update statement in a single line>My point is if this is acceptable then why have a .update() in ORM. I am sure by manually collating the updates in a single transaction that could also be done equally well.The idea of having a .update() ORM construct is to be able to do this without having to fall down to a manual transaction every time, otherwise why have a DB level <qs>.update()...I am sure the performance of above pseudo code would be about the same (or sufficiently small as to be ignorable)...
the ORM is much about convenience and this additonal syntax seems to provide the same, without taking away much.
No intention to annoy and thanks for looking into it, but I've only raise a ticket, and started the discussion on the users/dev group as you had suggested.
--
You received this message because you are subscribed to a topic in the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-developers/Hcsh4r9_mHg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAJxq8484XHc6BrAwy0Urg1ZChUsbH3SAduHp0Gf7Kz2R5UAnEg%40mail.gmail.com.