From owner-freebsd-hackers@FreeBSD.ORG Wed May 14 08:44:53 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE7F9106566C; Wed, 14 May 2008 08:44:53 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 35F6B8FC1A; Wed, 14 May 2008 08:44:52 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-62-238.lns11.adl2.internode.on.net [121.45.62.238]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m4E8PMMu079271 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 14 May 2008 17:55:23 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Wed, 14 May 2008 17:55:33 +0930 User-Agent: KMail/1.9.7 References: <20080512204558.GA44114@flint.openpave.org> <48291719.5010801@freebsd.org> In-Reply-To: <48291719.5010801@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3648637.0ilReWUd7Z"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200805141755.35892.doconnor@gsoft.com.au> X-Spam-Score: -2.212 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Jeremy Lea , Tim Kientzle , Anders Nore Subject: Re: Adding .db support to pkg_tools X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2008 08:44:54 -0000 --nextPart3648637.0ilReWUd7Z Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tue, 13 May 2008, Tim Kientzle wrote: > > I think this is a really bad idea. The problem with the tools is > > not with the files. It is that the files need to be parsed on each > > run, often recursively, and your solution would not help at all. > > Parsing one file isn't expensive; parsing several hundred files > to find one bit of information is expensive. > > > The database(s) should just be a cache of the information stored in > > the files. > > Bingo! As long as the .db version can be easily recreated > from scratch from the master data stored in the same files > as always, it doesn't really matter if the BDB is occasionally > corrupted, as long as it can be rebuilt fairly quickly. So long as you can tell it is corrupted.. It's also a drag from a user POV when the tool crashes because the DB is=20 hosed (seen in portupgrade a number of times) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart3648637.0ilReWUd7Z Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.8 (FreeBSD) iD8DBQBIKqH/5ZPcIHs/zowRAicSAJ0bihPNmz3tKAJ7SYKOFoR9l6XQ6gCggK3/ DXBGeT+Dmxen4Gi/bHriK8Y= =QpYT -----END PGP SIGNATURE----- --nextPart3648637.0ilReWUd7Z--