#28686: QuerySet.bulk_create() doesn't need to convert the input objs into list
------------------------------------------------+------------------------
               Reporter:  Michael Lee           |          Owner:  nobody
                   Type:  Cleanup/optimization  |         Status:  new
              Component:  Uncategorized         |        Version:  1.11
               Severity:  Normal                |       Keywords:
           Triage Stage:  Unreviewed            |      Has patch:  0
    Needs documentation:  0                     |    Needs tests:  0
Patch needs improvement:  0                     |  Easy pickings:  0
                  UI/UX:  0                     |
------------------------------------------------+------------------------
 I checked and found that in this commit,

 
https://github.com/django/django/commit/8adc59038cdc6ce4f9170e4de2d716d940e136b3
 #diff-5b0dda5eb9a242c15879dc9cd2121379R430

 The objs are converted to list. But if objs is actually a huge generator,
 then possibly the performance would be hugely degraded ?

 Maybe we could simply remove the the list conversion ?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28686>
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/054.7c57c463ef9f9b1113df26f6e404d7e0%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to