Re: Filesystem vs. Postgres for images - Mailing list pgsql-general

From Cott Lang
Subject Re: Filesystem vs. Postgres for images
Date
Msg-id 1081860033.2112.12.camel@localhost
Whole thread Raw
In response to Filesystem vs. Postgres for images  (Michal Hlavac <hlavki@medium13.sk>)
Responses Re: Filesystem vs. Postgres for images
List pgsql-general
On Tue, 2004-04-13 at 01:44, Michal Hlavac wrote:
> Hello,
>
> I am working on web portal. There are some ads. We have about 200 000
> ads. Every ad have own directory called ID, where is 5 subdirectories
> with various sizes of 5 images.
>
> Filesystem is too slow. But I don't know, if I store these images into
> postgres, performace will grow.


Consider breaking your directories up, i.e.:

/ads/(ID % 1000)/ID

I use that for a system with several million images, works great. I
really don't think putting them in the database will do anything
positive for you. :)






pgsql-general by date:

Previous
From: Holger Klawitter
Date:
Subject: Re: Filesystem vs. Postgres for images
Next
From: Jeremiah Jahn
Date:
Subject: Re: Filesystem vs. Postgres for images