While typing in the search box, the ajax suggestion/search function gets fired a lot.
Searching for a product by typing 2 words resulted in 22 requests to the following endpoint:
severely impacting the servers resources.
Possible suggestions for options:
– Add delay to await and evaluate if user stopped typing before searching
– Limit searches to A: When user stopped typing, and/or B: When a space is entered while typing (so we still get results while typing)