Camping and DBI

James jamesd.earl at gmail.com
Fri Jan 26 13:00:47 EST 2007


On 1/26/07, Lennon Day-Reynolds <rcoder at gmail.com> wrote:
> That way, your connection will only be established once per model
> class, and will stay open between requests. Alternately, you could set
> @@dbh instead of @dbh, which would open just one connection for all
> your model classes, but you might have problems handling multiple
> simultaneous requests through a single active database handle.

Thanks, I learned something new!  Would it be okay to use a constant
DBH to represent the database handle?

James


More information about the Camping-list mailing list