Changes between Version 4 and Version 5 of Ticket #35904
- Timestamp:
- Dec 6, 2024, 4:29:59 AM (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35904 – Description
v4 v5 1 As per this forum discussion, I have created a patch to improve load times for the loaddata command under some circumstances.1 As per [https://forum.djangoproject.com/t/feature-proposal-faster-fixture-loading-via-loaddata-command/36972 this forum discussion], I have created a patch to improve load times for the loaddata command under some circumstances. 2 2 3 3 Currently the “loaddata” management command uses the obj.save() method for each deserialized object within a fixture. This function first tries an UPDATE statement and, if that fails, tries an INSERT statement. By using the --force_insert a reduction of 50% of queries is achieved.