Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
I've inherited a legacy site with 500k+ nodes which needs the 7.x-2.x => 7.x-3.x update for Weight module.
This leads to an update process which can take many hours, and can timeout a lot of automated processes.
Proposed resolution
Optimize the update script.
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#4 | 3214098_4_weight_update_7301_speed.patch | 3.04 KB | Mile23 |
Comments
Comment #2
Mile23Here's a patch which uses
node_load_multiple()
withinweight_update_7301()
to reduce the number of DB requests.I am not entirely sure if the update process absolutely needs to load the nodes one at a time, but this does improve the speed.
Comment #3
Mile23Comment #4
Mile23Better improvement.
Comment #5
Mile23Comment #6
VladimirAusThank you for patches. 😄
Comment #8
VladimirAusFixed! 🍻