Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Won't Fix
-
Affects Version/s: 3.2
-
Fix Version/s: 4.3.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
I am not able to code the sql to fetch it, but if you or someone understanding the schema of relationship can write one that returns the number of active relationship for a given contact, I would think it would be a worthwhile optimisation, as it's called everytime a contact is displayed.
If you find the sql, can wrap it in a method, as done already for groups and membership
ie adding a CRM_Contact_BAO_Relationship::getRelationshipCount ( $contactId ) ) with a neat sql query as done for the membership