0

I have script which updating 2000-5000 nodes in loop and performance is poor. At the moment the code looks like:

foreach($nids as $nid) {
  $node = node_load($nid);
  // updating $node fields
  node_save($node);
}

It's possible optimize it? I don't need revisions, call node_* hooks, just update data.

0

There's a module called Views Bulk Operations.

This will update more than thousand node at a time without memory limit exception.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.