From: | Scott Ribe <scott_ribe(at)killerbytes(dot)com> |
---|---|
To: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Storing jpgs |
Date: | 2004-04-09 16:49:08 |
Message-ID: | BC9C3024.454DF%scott_ribe@killerbytes.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> Well just having them in the database won't affect performance directly.
>
> But there are indirect effects:
>
> 1) If you're accessing them regularly then the disk data will be cached by the
> kernel just like other tables, and will contend with the much denser data
> from your data tables.
>
> 2) Backups and restores will have to slog through that data as well and take
> correspondingly longer.
Right. One thing to consider is whether your files will change often or be
mostly static. I store them in the file system because the files I'm dealing
with right now never get updated. If they were in the database then my
simple database backup (pg_dumpall) would copy them all every time. By
keeping them in the file system it's easy to use utilities which do
incremental backup, and thus only new files need be copied.
--
Scott Ribe
scott_ribe(at)killerbytes(dot)com
http://www.killerbytes.com/
(303) 665-7007 voice
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2004-04-09 17:23:09 | Re: \? not working in psql |
Previous Message | Scott Ribe | 2004-04-09 16:36:33 | Why would query return PGRES_NONFATAL_ERROR? |