pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: apoc9009@yahoo.de <apoc9009@yahoo.de>
To: pgsql-performance@postgresql.org
Subject: Re: BLOB's bypassing the OS Filesystem for better Image
Date: Tue, 26 Apr 2005 11:34:45 +0200
Message-ID: <426E0B35.9080509@yahoo.de> (raw)
In-Reply-To: <426E045C.7010601@archonet.com>
References: <426DFA46.8090402@yahoo.de>
	<426E045C.7010601@archonet.com>


> Which filesystems? I know ext2 used to have issues with many-thousands 
> of files in one directory, but that was a directory scanning issue 
> rather than file reading.

 From my Point of view i think it is better to let one Process do the 
operation to an Postgres Cluster Filestructure as
if i bypass it with a second process.

For example:
A User loads up some JPEG Images over HTTP.

a) (Filesystem)
On Filesystem it would be written in a File with a random generated 
Filename (timestamp or what ever)
(the Directory Expands and over a Million Fileobjects with will be 
archived, written, replaced, e.t.c)

b) (Database)
The JPEG Image Information will be stored into a BLOB as Part of a 
special Table, where is linked
wit the custid of the primary Usertable.

 From my Point of view is any outside Process (must be created, forked, 
Memory allocated, e.t.c)
a bad choice. I think it is generall better to Support the Postmaster in 
all Ways and do some
Hardware RAID Configurations.

>> My Question:
>> Can i speedup my Webapplication if i store my JPEG Images with small
>> sizes inside my PostgreSQL Database (on verry large Databasis over 1 
>> GByte
>> and above without Images at this time!)
>
>
> No. Otherwise the filesystem people would build their filesystems on 
> top of PostgreSQL not the other way around. Of course, if you want 
> image updates to be part of a database transaction, then it might be 
> worth storing them in the database.

Hmm, ORACLE is going the other Way. All File Objects can be stored into 
the Database if the DB
has the IFS Option (Database Filesystem and Fileserver insinde the 
Database).


>
>> I hope some Peoples can give me a Tip or Hint where in can
>> some usefull Information about it!
>
> Look into having a separate server (process or actual hardware) to 
> handle requests for static text and images. Keep the Java server for 
> actually processing


Thanks




view thread (6+ messages)  latest in thread

Message-ID: <426E0B35.9080509@yahoo.de>
Permalink:  ../426E0B35.9080509@yahoo.de/
Also on:    postgresql.org/message-id/426E0B35.9080509@yahoo.de

 · 

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-performance@postgresql.org
  Cc: apoc9009@yahoo.de
  Subject: Re: BLOB's bypassing the OS Filesystem for better Image
  In-Reply-To: <426E0B35.9080509@yahoo.de>

* 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