Hi,

I am trying to update a drupal7 's modules latest version.
Core minor update proceeded fine but weight_update_7202 is taking a while.
This hook update loops over a select query result of 3 node's fields.
My site has a large amount of nodes (50 000) so the looping process seems unfeasible,
I let it run during 4h and only 1500 nodes were treated.

Thanks in advance for your recommendations

Comments

nancydru’s picture

Perhaps we should investigate using batching.

davisben’s picture

This is already using batching. I'll do some testing to see if there is a way to speed things up a bit.

davisben’s picture

Status: Active » Closed (works as designed)

I'm not sure there is anything else we can do here. I tested upgrading 1.0 to 2.1 on 3 different machines and all 3 processed 5,000 nodes in under a minute.