[drupal-devel] [task] Use node_load instead of extra db_query
Issue status update for http://drupal.org/node/27947 Post a follow up: http://drupal.org/project/comments/add/27947 Project: Drupal Version: cvs Component: profile.module Category: tasks Priority: normal Assigned to: robertDouglass Reported by: robertDouglass Updated by: robertDouglass Status: patch (code needs review) Attachment: http://drupal.org/files/issues/profile_node_load.txt (803 bytes) Since node_load caches its results and we know that a node is being loaded anyway, it makes no sense to have an extra db query just to determine the user id for the node. robertDouglass
Issue status update for http://drupal.org/node/27947 Post a follow up: http://drupal.org/project/comments/add/27947 Project: Drupal Version: cvs Component: profile.module Category: tasks Priority: normal Assigned to: robertDouglass Reported by: robertDouglass Updated by: moshe weitzman -Status: patch (code needs review) +Status: patch (ready to be committed) this is a no brainer moshe weitzman Previous comments: ------------------------------------------------------------------------ Mon, 01 Aug 2005 12:20:10 +0000 : robertDouglass Attachment: http://drupal.org/files/issues/profile_node_load.txt (803 bytes) Since node_load caches its results and we know that a node is being loaded anyway, it makes no sense to have an extra db query just to determine the user id for the node.
participants (2)
-
moshe weitzman -
robertDouglass