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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

persistant database connection

Status
Not open for further replies.

goodtalka

Programmer
Jun 11, 2002
12
IN
I am creating a web application (using CGI perl) where in I have lot of links on a page which, each link will run the same cgi script to retrive different data from the database.It takes lot of time each time to connect to the database and retrive, so I want a way where in I can connect to the database only once and that connection exists throughout so that retrival will be faster.How can I do it? Please Help!
 
use mod_perl and then load Apache::DBI..
it'll give you a peristant connection and also do the dirty work of pinging the database connection before assiging it accross script(s) ---
cheers!
san.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top