[drupal-devel] [task] Use node_load instead of extra db_query

robertDouglass drupal-devel at drupal.org
Mon Aug 1 12:22:15 UTC 2005


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




More information about the drupal-devel mailing list