pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brent R. Matzelle <bmatzelle@yahoo.com>
To: pgsql-php@postgresql.org
Subject: Re: faster way to display jpg-blobs?
Date: Mon, 19 Mar 2001 12:29:37 -0500
Message-ID: <200103191738.f2JHcoN07168@mail.postgresql.org> (raw)

3/18/2001 7:22:35 AM, Knut Suebert <knut.suebert@web.de> wrote:
>Because of the begin/end every picture on a page is loaded one after the
>other, I fear. Not simultaneous as if there would be a direct <img
>src='pic_N.jpg'> instead of <img src='pic.php?id=N'>.

You can put a BEGIN/END around multiple queries to place all queries into one 
transaction block and thus rid yourself of some overhead.  Otherwise I do not 
know of any _faster_ way to download binary data from a database.  I would 
suggest that you place the images on the fs instead and provide a (VARCHAR) 
path to the file, but that option is dependent upon your web system.  

Brent




view thread (3+ messages)

Message-ID: <200103191738.f2JHcoN07168@mail.postgresql.org>
Permalink:  ../200103191738.f2JHcoN07168@mail.postgresql.org/
Also on:    postgresql.org/message-id/200103191738.f2JHcoN07168@mail.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: bmatzelle@yahoo.com
  Subject: Re: faster way to display jpg-blobs?
  In-Reply-To: <200103191738.f2JHcoN07168@mail.postgresql.org>
  References: <200103191738.f2JHcoN07168@mail.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox