I am working on a large project where I have to present an effective way for a user to enter data into a form.
Three of the fields in this form require a value from a subset of a common data source (SQL table). I used jQuery and the jQuery user interface to create autocomplete that is sent to the shared HttpHandler.
Internally, the handler uses Linq-to-sql to capture the data needed from this particular table. The table has about 10 different columns, and the linq expression uses SqlMethods.Like () to match one search term in each of these 10 fields.
The problem is that this table contains about 20 thousand rows. Autocomplete works flawlessly, you must admit that a clean amount of data introduces losses in about 6 seconds or so (when debugging on my local computer) before it appears.
Autocomplete JqueryUI has 0 delay, key requests 3, and the result of the message is created in multiple-line Facebook style choices. (I almost had to rewrite the autocomplete plugin ...).
Thus, the problem is related to speed data. Any thoughts on how to speed this up? The only thing I had was to cache data (How / Where?); or use direct sql data reader to access data?
Any ideas would be greatly appreciated! Thanks,
<bleepzter/>
bleepzter
source share