pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dennis Sacks <dennis@illusions.com>
To: Sam Adams <samadams@myfastmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: BLOBs vs BYTEA
Date: Mon, 31 Jan 2005 20:51:06 -0700
Message-ID: <41FEFCAA.5070603@illusions.com> (raw)
In-Reply-To: <1107224790.13576.214020918@webmail.messagingengine.com>
References: <1107224790.13576.214020918@webmail.messagingengine.com>

Sam Adams wrote:

>Anyway, I was wondering which would be a better way to store a large
>amount of files each a few megabytes in size. There could be hundreds of
>thousands of files altogether. If stored as BYTEAs this would put them
>all in a single table. Would this effect performance considerablely? I
>assume if there were thousands then it would. But if the data is stored
>as BLOBs then aren't they store inside the database just in another
>table? Wouldn't this also be undesirable. Would it be better to store
>them normally on the file system and just provide the path and file name
>in the database. Obviously this wont provide any security or backup but
>would it make sense to do it this way with such a large amount of data?
>  
>
This is one of those age old debates. I've done both, and I'll tell you 
that in my experience it is less of a headache to store the files in the 
filesystem (which is what filesystems are designed for) and store the 
metadata in the database.

Dennis Sacks
dennis@illusions.com



view thread (4+ messages)  latest in thread

Message-ID: <41FEFCAA.5070603@illusions.com>
Permalink:  ../41FEFCAA.5070603@illusions.com/
Also on:    postgresql.org/message-id/41FEFCAA.5070603@illusions.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dennis@illusions.com, samadams@myfastmail.com
  Subject: Re: BLOBs vs BYTEA
  In-Reply-To: <41FEFCAA.5070603@illusions.com>

* 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