Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.4.8, 4.1.0, 4.1.2, Unscheduled
    • Fix Version/s: 4.4.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      getCount is implemented in the generic function by retrieving all entities and then counting them. This isn't very efficient, and more importantly, fails at any moderate scale (because all the records get added into a big array!).

      This can be fixed in an incremental fashion, leaving the current behaviour as a fall back for entities for which it's not an unreasonable solution.

        Attachments

        1. trunk-getCount.patch
          3 kB
          Alan Dixon
        2. v3.4-getCount.patch
          4 kB
          Alan Dixon

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              adixon Alan Dixon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: