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.

6

1 Answer 1

1

There's a module called Views Bulk Operations.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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