Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 May 2008 17:55:33 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-hackers@freebsd.org
Cc:        Jeremy Lea <reg@freebsd.org>, Tim Kientzle <kientzle@freebsd.org>, Anders Nore <andenore@start.no>
Subject:   Re: Adding .db support to pkg_tools
Message-ID:  <200805141755.35892.doconnor@gsoft.com.au>
In-Reply-To: <48291719.5010801@freebsd.org>
References:  <op.uavxx8ip2n4ijf@duckjen.nextgentel.no> <20080512204558.GA44114@flint.openpave.org> <48291719.5010801@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805141755.35892.doconnor>