if you rebuild the node access table you'll run out of memory quickly. Problem is this code:

$result = db_query("SELECT nid FROM {node}");
while ($node = db_fetch_object($result)) {
node_access_acquire_grants(node_load($node->nid));
}

That means all nodes are loaded. The problem is that loaded nodes are cached and thus the memory is depleted.

CommentFileSizeAuthor
#1 mw_3.patch467 bytesmoshe weitzman

Comments

moshe weitzman’s picture

Assigned: Unassigned » moshe weitzman
Priority: Normal » Critical
Status: Active » Needs review
StatusFileSize
new467 bytes

Patch attached. Is simple one liner to stop node caching.

This problem makes it impossible to rebuild on even a medium sized site like groups.drupal.org. we were down for 30 minutes tonight while killes and i looked into this.

dries’s picture

Looks good to me. :)

dries’s picture

Looks good to me. :)

ChrisKennedy’s picture

Status: Needs review » Closed (duplicate)