X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 07AF314B27FC for ; Wed, 11 Aug 2004 12:13:06 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 93715-01 for ; Wed, 11 Aug 2004 15:13:03 +0000 (GMT) Received: from frodo.hserus.net (frodo.hserus.net [204.74.68.40]) by svr1.postgresql.org (Postfix) with ESMTP id EF54514B281C for ; Wed, 11 Aug 2004 12:13:02 -0300 (ADT) Received: from [203.199.147.2] (port=32982 helo=ps0499.intranet.persistent.co.in) by frodo.hserus.net with asmtp (Cipher TLSv1:RC4-MD5:128) (Exim 4.41 #0) id 1Buume-0004Ep-Gp by authid with plain; Wed, 11 Aug 2004 20:42:56 +0530 From: Shridhar Daithankar To: Jesper Krogh Subject: Re: Storing binary data. Date: Wed, 11 Aug 2004 20:42:50 +0530 User-Agent: KMail/1.6.2 Cc: pgsql-performance@postgresql.org References: In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Organization: Persistent Systems Pvt. Ltd. Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408112042.50356.shridhar@frodo.hserus.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/155 X-Sequence-Number: 7791 On Wednesday 11 Aug 2004 7:59 pm, Jesper Krogh wrote: > The "common" solution, I guess would be to store them in the filesystem > instead, but I like to have them just in the database it is nice clean > database and application design and if I can get PostgreSQL to "not > cache" them then it should be excactly as fast i assume. You can normalize them so that a table contains an id and a bytea column only. Te main table will contain all the other attributes and a mapping id. That way you will have only the main table cached. You don't have to go to filesystem for this, I hope. HTH Shridhar