Re: newbie to cdb

Faried Nawaz <[email protected]> Wed, 26 Feb 2003 22:21:26 +0500
Newsgroups gmane.comp.djb.cdb
Organization Integral Domains
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Charles Cazabon <[email protected]> writes:

  Probably no one has felt a need, simply because the current text file format
  isn't a performance bottleneck in most cases.

The BSDs since (I think) Berkeley Networking Release 2 have used a db format
to supplement for /etc/passwd and /etc/master.passwd for quicker lookups.
Changes to /etc/master.passwd result in creation of /etc/passwd,
/etc/pwd.db, and /etc/spwd.db.  Programs that read /etc/passwd line-by-line
continue to work, while getpwuid() and the like are shunted to the db.

Quite a few sites -- especially mailhosts with large userbases -- rely on
the database files for speedups.  There are even tools that add/remove
records by munging the db files in-place instead of rebuilding from scratch.


Faried.
- -- 
The Great GNU has arrived, infidels, behold his wrath !
"If a MOO runs on a port no one accesses, does it run?"

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
Comment: Emacs -- it's like swatting a fly with a supernova.
Charset: noconv

iQA/AwUBPlz3kEANSn1u9fSjEQLNFwCgosDtk/ZhjlcuYpla2nU/KszJAi4AoJ8H
S2RJ/s3Zb4ROqznYIIUNwaPs
=Balo
-----END PGP SIGNATURE-----