Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

customers: optimize search customers query #216

Closed
vxio opened this issue Oct 2, 2020 · 1 comment
Closed

customers: optimize search customers query #216

vxio opened this issue Oct 2, 2020 · 1 comment
Assignees

Comments

@vxio
Copy link
Member

vxio commented Oct 2, 2020

searchCustomers does the following:

  1. retrieves n customerIDs based on the search criteria
  2. calls getCustomer() a total of n times; resulting in n database queries

We can reduce the # of queries to one.

Originally posted by @adamdecaf in #211 (comment)

@adamdecaf
Copy link
Member

Thanks for grabbing this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants