From owner-freebsd-questions Wed Dec 6 5:24:16 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 05:24:14 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id B5DD537B400 for ; Wed, 6 Dec 2000 05:24:13 -0800 (PST) Received: (qmail 91909 invoked by uid 100); 6 Dec 2000 13:24:07 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14894.15863.860076.585478@guru.mired.org> Date: Wed, 6 Dec 2000 07:24:07 -0600 (CST) To: Mike Cc: questions@freebsd.org Subject: Re: OT: gdbm In-Reply-To: <122557536@toto.iv> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Message: You should get a better mailer. Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike types: > Quick off topic question: > Would it be better/faster to pull configuration for a C or PHP cgi from a > text file, or GDBM db? The program will be accessed over 200,000/day, so > speed and reliability is a concern. If speed and reliability are a real concern, I wouldn't use either one of those; I'd put it in an SQL db. On the other hand, this may not be appropriate for what you're doing. The two methods have different speed tradeoffs, so it's hard to say even if I had an accurate description of the problem. On the other hand, measuring it yourself shouldn't be hard. As for reliability - assuming you're putting preparsed data in the GDBM db, then not having to worry about errors during the parse makes that a bit easier. But that's just a minor benefit. http://www.mired.org/home/mwm/ Independent WWW/Unix/FreeBSD consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message