X-Original-To: pgsql-novice-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 7C901D1E16D; Fri, 20 Feb 2004 15:23:01 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 12455-03; Fri, 20 Feb 2004 11:22:55 -0400 (AST) Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by svr1.postgresql.org (Postfix) with ESMTP id D2FDAD1E177; Fri, 20 Feb 2004 11:22:48 -0400 (AST) Received: from [81.98.165.129] by mta02-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20040220152221.CKIU14417.mta02-svc.ntlworld.com@[81.98.165.129]>; Fri, 20 Feb 2004 15:22:21 +0000 Mime-Version: 1.0 (Apple Message framework v612) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit Cc: pgsql-novice@postgresql.org From: beyaNet Consultancy Subject: Binary retrieval - *Best practice* recommendations... Date: Fri, 20 Feb 2004 15:22:50 +0000 To: pgsql-sql@postgresql.org X-Mailer: Apple Mail (2.612) X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/165 X-Sequence-Number: 9636 Hi, I have a table in postgreSQL, ver. 7.4.1, which serves up image data(JPEG) to users browsers. In various posts I have read there has been a favour towards storing image data as bytea (byte[]) instead of storing the filesystem location of the image, or whatever binary data is, in the database. I have decided to store my images on the database and wanted to know what *best practice* performance tweaks you suggest I make to postgreSQL in terms of minimising the time it takes to serve binary data to users? many thanks in advance