Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 8BA2C9F9BC8 for ; Sun, 19 Aug 2007 17:23:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 98026-02 for ; Sun, 19 Aug 2007 17:23:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from fetter.org (start.fetter.org [66.92.188.65]) by postgresql.org (Postfix) with ESMTP id 78FC39F9D19 for ; Sun, 19 Aug 2007 17:23:36 -0300 (ADT) Received: by fetter.org (Postfix, from userid 500) id DB608FBC842; Sun, 19 Aug 2007 13:23:34 -0700 (PDT) Date: Sun, 19 Aug 2007 13:23:34 -0700 From: David Fetter To: mark overmeer Cc: pgsql-performance@postgresql.org Subject: Re: schema design question Message-ID: <20070819202334.GN28490@fetter.org> References: <20070819181216.GK28490@fetter.org> <20070819182658.GC25214@uio.no> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.14 (2007-02-12) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/202 X-Sequence-Number: 26332 On Sun, Aug 19, 2007 at 10:13:08PM +0200, mark overmeer wrote: > Hi, > > 2007/8/19, Steinar H. Gunderson : > > > > As a general database design paradigm, though, I fully agree with > > you. Databases are databases, not glorified OO data stores or > > hash tables. > > I don't want to use it as an OO data store, I use the filesystem for > that. The intended use is to search for the right object. Since it > has separate data structures for searching (indexes) I guess that is > one of its functions. > > However, it still doesn't answer my question about the EV model > (where each attribute is given its own table). The answer to EAV modeling, is, "DON'T!" Cheers, David (who, if he were greedy, would be encouraging EAV modeling because it would cause guaranteed large consulting income later) -- David Fetter http://fetter.org/ phone: +1 415 235 3778 AIM: dfetter666 Skype: davidfetter Remember to vote! Consider donating to PostgreSQL: http://www.postgresql.org/about/donate