c# - How to do Autocomplete in search desktop program -
I am programming a search desktop program to search for words and sentences in SqlServer 2008 DB.
I want to do it like Babylonian:
When the user starts to type the first letter, then the program should suggest the first N words starting with that letter. And when he completes a correct word, then the program should suggest the first N sentence to include the term.
I wrote the algorithm for the search engine but used the thread to start the previous steps, so that I can see a new thread on every key press event I saw slowerness in this approach is?
My goal is to make it like Babylon, it is fast in autocomplete.
Why not run your algorithm on the same thread on the same database I think every key is a thread overkill is.
What you can do also get rows from table X, then instead of going back and forth of the database, run an algorithm against them (not sure if you are already doing this).
Comments
Post a Comment