On 1/26/07, Lennon Day-Reynolds <[EMAIL PROTECTED]> 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
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to