I'm programming a search desktop program to look up for words and sentences in SqlServer 2008 DB.
I want to do it like babylon:
When the user starts to write the first letter the program should suggest the first N words that begin with that letter. And when he completes a correct word the program should suggest the first N sentences that contains this word.
I wrote the algorithm for the search engine but and used threads to begin the previous steps so I create a new thread on every KeyPress event. I noticed a slowness in this approach. Can anyone suggest a new one?
My goal is to make it like babylon. It's fast in autocomplete.