Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Tomcat, CGI scripts and DBI connection persistence

by keszler (Priest)
on Oct 30, 2011 at 13:15 UTC ( [id://934723]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Tomcat, CGI scripts and DBI connection persistence
in thread Tomcat, CGI scripts and DBI connection persistence

There would be overhead, but how do the cgi-bin/<scriptname>.pl programs communicate with the DB? That has all the same overhead, plus the database's authentication.

If the individual programs typically run a small number of queries per invocation then the overhead of DB authentication is relatively more significant.

Also, if the website is heavily used the DB might be "happier" with a small number of connections making many queries vs many connections making few queries each.

  • Comment on Re^3: Tomcat, CGI scripts and DBI connection persistence

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://934723]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (6)
As of 2024-04-23 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found