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.