#35904: Speed up fixture loading by bulk insert
-------------------------------------+-------------------------------------
Reporter: JorisBenschop | Type:
| Uncategorized
Status: new | Component: Testing
| framework
Version: 5.0 | 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 noticed that loading many fixtures is fairly inefficient, in that it
tries an update and then an insert for each record. I would propose an
additional option to the command line (—bulk-insert) that only runs the
insert queries, but also detects if subsequent items in the fixtures are
from the same model, so they may be inserted using bulk_insert. If there
is genuine interest in this feature i will develop it and submit. I have
this running in my own codebase already.
Please also indicate if there is no interest, and i spend my energy
elsewhere =)
--
Ticket URL: <https://code.djangoproject.com/ticket/35904>
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/010701931c24209b-60358265-1fd3-45b6-b890-783d8e83cdf7-000000%40eu-central-1.amazonses.com.