So I'd like to know what is the general algorithm to implementing an instant search that is not load intensive. Not specifically on the web but even in a desktop/winforms application.
Correct me if Im wrong but one cannot send async calls on every key stroke right? (Not sure how google instant manages this) It would create an insane load on the database/store etc.
Ive been thinking of something like this:
- Fire timer every xxx milliseconds
- On fire, Disable input, Disable timer, and send an async call to search.
- When the call returns, display results, enable input, enable timer
Is this how it it generally handled, or is there a better way?