Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 13711 invoked from network); 21 Apr 2010 16:40:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Apr 2010 16:40:22 -0000 Received: (qmail 51959 invoked by uid 500); 21 Apr 2010 16:40:21 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 51929 invoked by uid 500); 21 Apr 2010 16:40:21 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 51922 invoked by uid 99); 21 Apr 2010 16:40:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 16:40:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [64.85.161.47] (HELO b03ls15le.corenetworks.net) (64.85.161.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Apr 2010 16:40:13 +0000 Received: from freedom2.my.domain (cpe-72-177-54-134.austin.res.rr.com [72.177.54.134]) by b03ls15le.corenetworks.net (8.14.3/8.14.3) with ESMTP id o3LGdmvY030788 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Wed, 21 Apr 2010 11:39:50 -0500 (CDT) Message-ID: <4BCF36D8.9060106@bennettconstruction.biz> Date: Wed, 21 Apr 2010 12:33:12 -0500 From: Chris Bennett Reply-To: chris@bennettconstruction.biz Organization: Bennett Construction User-Agent: Mozilla/5.0 (X11; U; OpenBSD i386; en-US; rv:1.9.1.9) Gecko/20100416 Thunderbird/3.0.4 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Felipe_de_Jes=FAs_Molina_Bravo?= CC: modperl@perl.apache.org Subject: Re: best practie for open and close connection database References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit On 04/21/10 11:33, Felipe de Jes�s Molina Bravo wrote: > Hi > > In my application, I opened my database from authentication handler and > close it from child exit handler. It is correct (is a best practice)? or > is a bad design? > > where i can read for best practice for it? > > thank's > > > Are you using Apache::DBI? Is it a local database server or remote? Are you almost always using the same database and user? Or mixed?