#35936: Speeding up Postgres bulk_create by using unnest
-------------------------------------+-------------------------------------
     Reporter:  Simon Charette       |                    Owner:  Simon
         Type:                       |  Charette
  Cleanup/optimization               |                   Status:  closed
    Component:  Database layer       |                  Version:  5.1
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  postgres bulk        |             Triage Stage:  Ready for
  create unnest                      |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce <42296566+sarahboyce@…>):

 * resolution:   => fixed
 * status:  assigned => closed

Comment:

 In [changeset:"a16eedcf9c69d8a11d94cac1811018c5b996d491" a16eedc]:
 {{{#!CommitTicketReference repository=""
 revision="a16eedcf9c69d8a11d94cac1811018c5b996d491"
 Fixed #35936 -- Used unnest for bulk inserts on Postgres when possible.

 This should make bulk_create significantly faster on Postgres when
 provided
 only literal values.

 Thanks James Sewell for writing about this technique, Tom Forbes for
 validating the performance benefits, David Sanders and Mariusz Felisiak
 for the review.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35936#comment:6>
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 visit 
https://groups.google.com/d/msgid/django-updates/01070193b5cabdf6-f36e723b-7df4-4f47-8960-91d09f70ff65-000000%40eu-central-1.amazonses.com.

Reply via email to