When typing in a metadata search field, each character typed will fire off a request. Only firing a request when the user stops typing for 300ms or so might be better.
Then again, I see that determining the subcorpus size is already debounced, and that is the potentially expensive operation. Autocomplete probably doesn't stress the server that much.
When typing in a metadata search field, each character typed will fire off a request. Only firing a request when the user stops typing for 300ms or so might be better.