The user_relationships_load_all_for_user() function can be a big performance hit for users with tens or hundreds of thousands of relationships, e.g. users who are the default "buddy" on a site. There are some places where the code loads all relationships and then searches through them all to find just a few relationships. I've updated two of those places to use the new user_relationships_load_relationships() API function to load only the relationships the code cares about. [See http://drupal.org/node/184709 for a discussion of the new API function.]
In particular, I updated the plugins/user_relationship_implications/user_relationship_implications.module, and the user_relationships_block_select_relationships() function in user_relationships_actions.inc, which selects the relationships to display in the relationship blocks.
Comments
Comment #1
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.