Re: Caching Websites

From: Richard Huxton <dev(at)archonet(dot)com>
To: Adam Kessel <adam(at)bostoncoop(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Caching Websites
Date: 2003-05-12 08:39:19
Message-ID: 200305120939.19134.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday 09 May 2003 9:48 pm, Adam Kessel wrote:
> I am wondering whether it would be better to store each website in a
> record in a table, or instead have a table which links URLs to filenames
> (the file would contain the pickled website). The sites will of course
> vary greatly in size, but typically be between 1k and 200k (I probably
> won't store anything bigger than that).
>
> This seems like a simple question, and I suspect there's an obvious
> answer for which data storage method makes more sense, I just don't know
> how to go about researching that. What would be the considerations for
> using one method of data storage vs. the other?
>
> Any suggestions for me?

Not that simple a question - look back through the archives for plenty of
discussions (usually regarding images).

My personal approach is to ask myself whether I'm going to access/process the
data in any way. Basically if I want to do any of:
1. query the large data
2. summarise it
3. have transaction-based update control
then I'll store it in the database. If not, I'll store a path to the file.

--
Richard Huxton

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vincenzo Alberico 2003-05-12 09:34:25 Datatype Definition
Previous Message Veres Lajos 2003-05-12 08:29:09 infinite trigger loop