views:

99

answers:

1

I am using sql server 2000 and asp.net with c# for making a search engine and i want to refine the results obtained from a search without making server connection again and again due to speed factor how can i make my search fast?..............how can i make sql server connection lesser?...

+4  A: 

As Matthew alluded to, your two connection points are the HTTP request from the client (web browser) to the server (web server), and the connection from the web server to the sql server.

The connection from the web server to the sql server costs very little in the whole client-server-sql-server-client trip. So one would assume you are talking about the browser-to-webserver connection. Only way to avoid that is to dump the entire database (or at least the unfiltered pool of records one can query) to the browser and do your filtering client-side - which is an INCREDIBLY !!BAD!! IDEA.

So my suggestion would be to stop fretting, write the application as you normally would, and if things are looking slow when you are done then you can start looking for where the slowness is comming from - instead of trying to guess (and probably be wrong) before there's even an issue.

Boo
but my application responding slow........i just want to minimise the connection with the sql server......do u hv ny idea.........
saurabh
I think you may need to tell us why the application is responding slow? what is causing the slowness? Maybe if you can identify what the actual problem is then we may be able to help.
Rippo
i am describing my application..in my application i am searching properties for a particular city and afer this search there is options of refinement of results with the localities, bedrooms and cover area options each time a generate a query for each refinement...now what can i do.........?
saurabh
"now what can i do.........? " - add appropriate indexes to your database?!...
Mitch Wheat
i am already added appropriate indexesin my database i am also using full text indexing.......
saurabh
and how do you know they are appropriate?
Mitch Wheat