Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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

by spx2 (Chaplain)
on Oct 30, 2011 at 11:06 UTC ( #934701=note: print w/ replies, xml ) Need Help??


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

That's a good idea, but wouldn't that induce additional overhead ? opening the socket, passing data through, receiving it .. ?


Comment on Re^2: Tomcat, CGI scripts and DBI connection persistence
Re^3: Tomcat, CGI scripts and DBI connection persistence
by keszler (Priest) on Oct 30, 2011 at 13:15 UTC

    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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (12)
As of 2015-07-03 16:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (54 votes), past polls