Closed (duplicate)
Project:
Drupal core
Version:
5.1
Component:
node system
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
1 Mar 2007 at 02:55 UTC
Updated:
1 Mar 2007 at 13:41 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | mw_3.patch | 467 bytes | moshe weitzman |
Comments
Comment #1
moshe weitzman commentedPatch 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.
Comment #2
dries commentedLooks good to me. :)
Comment #3
dries commentedLooks good to me. :)
Comment #4
ChrisKennedy commentedDuplicate of http://drupal.org/node/108752 ...