From owner-freebsd-isp Wed Dec 6 8:37:52 2000 From owner-freebsd-isp@FreeBSD.ORG Wed Dec 6 08:37:51 2000 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from misery.sdf.com (misery.sdf.com [204.244.213.49]) by hub.freebsd.org (Postfix) with ESMTP id 22CBD37B400 for ; Wed, 6 Dec 2000 08:37:50 -0800 (PST) Received: from tom (helo=localhost) by misery.sdf.com with local-esmtp (Exim 2.12 #1) id 143gte-0005vh-00; Wed, 6 Dec 2000 07:54:18 -0800 Date: Wed, 6 Dec 2000 07:54:16 -0800 (PST) From: Tom Samplonius To: Mike Cc: freebsd-isp@freebsd.org Subject: Re: OT: gdbm In-Reply-To: <4.3.2.7.2.20001206025552.02e79f98@mail.futuredesigns.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 6 Dec 2000, Mike wrote: > 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 the program needs to read the entire configuration, there would be no difference because the entire file would need to read. Any kind of db only helps if you are retrieving data by key. The best things is to not use CGI at all (well with fastcgi, you could load the config just once). Tom To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message