Instead of making a new request every time the user tries to search, make a single request (or if that's not possible because of the API exposed, one for each department), and store the results in memory. Then run searches on the locally cached copy.
Instead of making a new request every time the user tries to search, make a single request (or if that's not possible because of the API exposed, one for each department), and store the results in memory. Then run searches on the locally cached copy.
200 pts