#32381: Include number of rows matched in bulk_update() return value
-------------------------------------+-------------------------------------
Reporter: Chris Jerdonek | Owner: Diego
| Lima
Type: New feature | Status: assigned
Component: Database layer | Version: dev
(models, ORM) |
Severity: Normal | Resolution:
Keywords: bulk_update | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Diego Lima):
* cc: Diego Lima (added)
* owner: bhavikabadjate901 => Diego Lima
Comment:
Due to inactivity, I'm claiming this ticket. [comment:11
bhavikabadjate901] please come forward if you have done any work on this!
I'm taking the simplest approach first, which is `bulk_update -> int`. As
stated by [comment:4 Simon Charette]:
> I think that making `bulk_update` return the sums of its `update`s
should be good enough for now.
and [comment:5 Tom Forbes]:
> Let’s just make it return the updated rows
Then, I'll stop and think a bit more about [comment:1 Chris Jerdonek]'s
future-proofing and [comment:8 Tim McCurrach]'s duplicate edge case.
--
Ticket URL: <https://code.djangoproject.com/ticket/32381#comment:13>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.6a2e3d7114d4fe0edd8eb4ea5ce2867c%40djangoproject.com.