[development] load node globally
catch56 at googlemail.com
Thu Jan 15 22:34:36 UTC 2009
In HEAD node_load() is done about 13 times during the course of a node/n
page load - but as already mentioned, the static cache in node_load()
prevents duplicate queries in those cases, or if it's called again from a
In Drupal 7, node_load_multiple() will let you pull all nodes on a page in a
single query (+ 1 per hook) for node listings, and there's an active patch
to cache fully loaded node objects persistently (i.e. in a cache_node table,
or memcache) here: http://drupal.org/node/111127 which could use some extra
benchmarks if anyone wants to help it get in.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development