scottopolis / edd-metrics

EDD Metrics
46 stars 12 forks source link

Use count() in get_customers() and compare_customers() #4

Closed pippinsplugins closed 8 years ago

pippinsplugins commented 8 years ago

The EDD customers DB class provides a count() method that will make your get_customers() and compare_customers() methods much more efficient.

https://github.com/easydigitaldownloads/easy-digital-downloads/blob/master/includes/class-edd-db-customers.php#L523

scottopolis commented 8 years ago

Thanks for the tip, updated in https://github.com/scottopolis/edd-metrics/commit/dc20283830e7be68b0d28a0dfca9e96254386350