Changes between Version 3 and Version 4 of Ticket #35904


Ignore:
Timestamp:
Dec 6, 2024, 4:28:57 AM (2 weeks ago)
Author:
JorisBenschop
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35904 – Description

    v3 v4  
    1  As per ​this forum discussion, I have created a patch to improve load times for the loaddata command under some circumstances.
     1As per ​this forum discussion, I have created a patch to improve load times for the loaddata command under some circumstances.
    22
    33Currently 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.
Back to Top