Reputation: 69
I have implemented an auto-complete search on my website using ajax autocomplete control.It uses web service which returns results from database. I have a stored procedure which searches for all text values in all columns of all tables for this purpose. The problem here is results taking long to show up in autcomplete control. I have also applied indexing on the most frequently searched table columns, but that to didn't help much. Can this be because of the load on the server, since the server is not a dedicated one. If not how can I fetch the results faster?
Upvotes: 0
Views: 860
Reputation: 7853
You can always optimise the queries to load data faster and use server side caching to cache the data.
Also on UI I would recommend you to use jQuery autocomplete plugin
<script>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>
Upvotes: 2