Load and Save nodes with script?
I recommend to resaving for smaller count of nodes, and run next script few times. Of course using batch will better UI, add itself:
    

require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);

$from_nid = variable_get('tmp_from_nid', 0);

$sql = "SELECT n.nid
        FROM {node} n
        WHERE n.nid &gt; :nid
        ORDER BY n.nid";
$result = db_query_range($sql, $from, 1000, $from_nid);

foreach($result as $row) { 
  set_time_limit(30);

  $node = node_load($row-&gt;nid);
  node_save($node);
  $from_nid = $row-&gt;nid;
}

variable_set('tmp_from_nid', $from_nid);
drupal_set_message(t('Last processed nid - !nid', array('!nid' =&gt; $from_nid)));
?&gt;


Also VBO for mass resaving nodes.