Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I have answered some questions and have gotten answers for my questions. Anywhere you can do this on one page helps tremendously..."

Geography

Where in the world do Tek-Tips members come from?
mayamanako (TechnicalUser)
19 Jun 12 4:09
Hi guys,

Sorry guys if this is not the appropriate forum for this question. Im just not sure where should this belong. I just thought that it could also have something to do with the SQL.

I have an auto suggest dropdown which was a bit faster intially. Now that the keywords are a couple of thousands, the suggest dropdown is becoming slow and it takes about 3 seconds before it shows.

I am using .asp, sql server2000 using the patindex to search for the keywords.

Any idea to make it a bit faster?

Thanks.



simian336 (Programmer)
19 Jun 12 8:35
Could you provide a data sample from you table as well as several examples of your most common searches.

Simi
Qik3Coder (Programmer)
19 Jun 12 10:24
You probably need to re-index your table, or provide some additional indexes.

Either run your stored proc (or in line sql) in SSMS with "Include actual execution plan" turned on.
If you're missing an INDEX, it will indicate that. Otherwise, you will have to look through the exec plan and try to fix "Index Scans" to use "Index Seeks". This normally requires adding a missing field to a join.

Lodlaiden

You've got questions and source code. We want both!
Oh? That? That's not an important password. - IT Security Admin (pw on whiteboard)

JoeAtWork (Programmer)
11 Jul 12 0:23
I don't think anyone can really tell you without a lot more information about the architecture of your application. Perhaps your database is perfect but your ASP (.NET ?) is badly implemented, or vice versa.
craigber (Programmer)
11 Jul 12 10:29
3000???? That's FAR too many entries for autosuggest. Cut down on the entries or redesign that part of the application to narrow down the choices somehow.

Craig Berntson
MCSD, Visual C# MVP, www.craigberntson.com/blog

Qik3Coder (Programmer)
11 Jul 12 10:38
Craigber,
Having 3k different possibilities isn't far fetched. Choosing to show them all to the user is.
Normally you only bring back 10-15. Reducing the amount of data that is passed through the web service call is one of the few places to optimize this.

If he's actually loading all 3k into the page, severly bloating the whole thing, then I agreee with you. If he's bringing the data back from an AJAX web call, that's still bad, but at least he's waiting for the user to give him some input.

mayamanako,
Check this out:
http://jqueryui.com/demos/autocomplete/

Lodlaiden

You've got questions and source code. We want both!
There's a whole lot of Irish in that one.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close