How to make a fast node body save without invoke hooks
This is how to save a node body, or stuff in node_revisions table without calling all hooks. I had a large report to be saved (over 6MB) and all unpacking and hooks made the server not to fulfil the job in a good way. Then I used just the part saving to the node_revisions table instead. This is a special case so be careful, you might need some hooks to be called.
<?php
$node = node_load(2330);
$node->body = "<h2>Fast node save</h2>";
drupal_write_record('node_revisions', $node, 'vid');
?>You might checkout the original node_save to find out what you are missing by doing the above: http://api.drupal.org/api/drupal/modules!node!node.module/function/node_...
Knowledge keywords:
