a coding error i've seen from inexperienced devs with little database experience
is inattentiveness to how the DB connections were being opened. last time i
saw this, a smart young dev with no DB background did not understand the cost
of opening connections and had on the order of 30 php calls to open connections
to PostgreSQL in a single page. he did not understand why it was slow.
richard