Whether connection pooling can be done "easily" depends on how the underlying database client library handles sockets. AFAIK Oracle OCI doesn't support sharing connections between different clients, meaning that you'd actually have to write your own server daemon that sits between your web server and Oracle. This is seriously non-trivial to get right.
At a previous job we wrote such a beast - actually at the time we used FreeBSD for the front-end, and there were no Sybase libraries available for that platform. So we designed a simple communication protocol, with a server on the front-end listening on a Unix domain socket and then communicating with a multi-threaded server on the middle tier that itself talked to Sybase. It worked reasonably well, but there were always problems, and maintaining the two multi-threaded apps was a pain.
As perrin says - just use Apache::DBI, and maybe use a lightweight http proxy front-end to limit the number of processes that need to have a database connection.
Michael
P.S. - now if you were using Sybase instead you could use Apache::Sybase::ConPool
:-)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.