Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-21136

Use getcount api to return activity count in getActivities() function

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.7.0
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      Civi loads all activities from civicrm_activity and then counts array length to return the count in the getActivities() function. See the todo statement at https://github.com/civicrm/civicrm-core/blob/master/CRM/Activity/BAO/Activity.php#L768

        Attachments

          Activity

            People

            • Assignee:
              jitendra.purohit Jitendra Purohit
              Reporter:
              jitendra.purohit Jitendra Purohit
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: