in reply to Most efficient MS SQL connection
is there a better method to use?
That depends very much on the architecture of the application. If your queries are complex it takes time, you'll probably have to live with that. You could try to (further) optimize your queries, have you already tried that? Maybe you could do some batch processing, populating some of the tables at a better time, e.g. at night?
It's not clear from your description how much processing is done by the web server. Fetching a lot of data from the database is a typical bottleneck leading to a lot of network traffic and long connect times. One solution is than to move more logic into the database, e.g. using Stored Procedures can often boost performance. Another solution is to change the architecture and put in another layer, e.g. add an application server
My gut feeling is that the real problem is not the way you connect to the database but how the application is partitioned: what is done where.
Cheers
Harry
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Most efficient MS SQL connection
by banesong (Acolyte) on Mar 03, 2010 at 13:09 UTC | |
by dHarry (Abbot) on Mar 03, 2010 at 15:00 UTC | |
by mje (Curate) on Mar 03, 2010 at 16:03 UTC |