From: Alexey Borzov <borz_off@rdw.ru>
To: chriswood@wvda.com
Cc: pgsql-php@postgresql.org
Subject: Re: Question re large objects
Date: Wed, 29 Nov 2000 11:03:19 +0300
Message-ID: <101701354.20001129110319@rdw.ru> (raw)
In-Reply-To: <3A23B26E.9056.2942B3@localhost>
References: <3A23B26E.9056.2942B3@localhost>
Greetings, chriswood!
At 28.11.2000, 11:00, you wrote:
cwc> I'm working on a web page template system (PHP/PostgreSQL)
cwc> which will (in part, other stuff is done) allow users to upload a gif or
cwc> jpeg via a form on another site. The image will then slot into a
cwc> predetermined place on their template website.
cwc> I've considered the alternatives (store files in a directory or in the
cwc> db), and I think storing the image files in the database is the way to
cwc> go. Unless anybody can think of why I should just upload the files
cwc> to a directory on the server instead of storing them as BLOBs.
Well, there is one (huge) reason - speed. Besides, current BLOB
support in pgsql is not too good:
1) You can't pg_dump BLOBs,
2) For _each_ BLOB _two_ files are created in database dir.
So, my advice would be to store images in filesystem and to store
paths to them in DB.
--
Yours, Alexey V. Borzov, Webmaster of RDW
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: borz_off@rdw.ru, chriswood@wvda.com
Subject: Re: Question re large objects
In-Reply-To: <101701354.20001129110319@rdw.ru>
References: <3A23B26E.9056.2942B3@localhost> <101701354.20001129110319@rdw.ru>
* 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