Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^4: Perl with Database connection.

by vinoth.ree (Monsignor)
on Aug 03, 2009 at 08:39 UTC ( #785393=note: print w/replies, xml ) Need Help??

in reply to Re^3: Perl with Database connection.
in thread Perl with Database connection.


I support ping method man.


Instead of connecting to the database every time when you execute the query, you connect with the database and by calling the ping method from DBI you can check the database connectivity, if the connection is alive, execute the query otherwise call the connect function and create database connection.

Replies are listed 'Best First'.
Re^5: Perl with Database connection.
by santhosh_89 (Scribe) on Aug 03, 2009 at 08:43 UTC

    Dear ree
    Ok,It is used for checking the connection is alive or not. I want to know which logic is better(global connection or multiple connection).I hope that you will understand now.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://785393]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2017-04-28 15:12 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (525 votes). Check out past polls.