Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Connection Performance Problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I need to query of set of around 3000 records and perform around 15 to 30 queries on each record (done by calling subroutines). I'm facing a problem of performance when many users are accessing the file at the same time, due to opening/closing the connection many times.

How can I optimize my operation, keeping in mind that the functions/subroutines are in a seperate file that's being included in my processing file?

Is there a way to track the number of times a connection is opened?
 
If you're using Access as your db, then it's going to give you nothing but headaches trying to support multiple concurrent users -- My suggestion would be to upgrade to an enterprise dbms and then just create your connections on each page. It shouldn't give you any performance trouble if you have a good db behind it.

If you're already using something like SQL Server, then you have nothing to worry about -- it can handle it.

Problem with the application object is that the connection will have to either stay open all the time (???) or each page will have to try and open it when it's loaded. If you try to open it on each page, then you run into the same problems as creating them on each page --

:)
Paul Prewett
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top