INL / corpus-frontend

BlackLab Frontend, a feature-rich corpus search interface for BlackLab.
16 stars 7 forks source link

Debounce autocomplete requests #430

Closed jan-niestadt closed 1 year ago

jan-niestadt commented 1 year ago

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.

jan-niestadt commented 1 year ago

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.