customers: optimize search customers query
vxio opened this issue · 1 comments
vxio commented
searchCustomers
does the following:
- retrieves
n
customerIDs
based on the search criteria - calls
getCustomer()
a total ofn
times; resulting inn
database queries
We can reduce the # of queries to one.
Originally posted by @adamdecaf in #211 (comment)
adamdecaf commented
Thanks for grabbing this