pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mitch Pirtle <mitch.pirtle@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: Caching of Queries
Date: Mon, 27 Sep 2004 14:59:13 -0400
Message-ID: <330532b604092711591491303a@mail.gmail.com> (raw)
In-Reply-To: <00e801c4a4b6$5526dd30$8300a8c0@solent>
References: <BAY18-DAV6m5UxP9Fek0002fd87@hotmail.com>
	<00e801c4a4b6$5526dd30$8300a8c0@solent>

On Mon, 27 Sep 2004 18:20:48 +0100, Matt Clark <matt@ymogen.net> wrote:
> This is very true.  Client side caching is an enormous win for apps, but it
> requires quite a lot of logic, triggers to update last-modified fields on
> relevant tables, etc etc.  Moving some of this logic to the DB would perhaps
> not usually be quite as efficient as a bespoke client caching solution, but
> it will above all be a lot easier for the application developer!

In the world of PHP it is trivial thanks to PEAR's Cache_Lite.  The
project lead for Mambo implemented page-level caching in a day, and
had all the triggers for clearing the cache included in the content
management interface - not difficult at all.

Basically you set a default in seconds for the HTML results to be
cached, and then have triggers set that force the cache to regenerate
(whenever CRUD happens to the content, for example).

Can't speak for Perl/Python/Ruby/.Net/Java, but Cache_Lite sure made a
believer out of me!

-- Mitch



view thread (72+ messages)  latest in thread

Message-ID: <330532b604092711591491303a@mail.gmail.com>
Permalink:  ../330532b604092711591491303a@mail.gmail.com/
Also on:    postgresql.org/message-id/330532b604092711591491303a@mail.gmail.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-performance@postgresql.org
  Cc: mitch.pirtle@gmail.com
  Subject: Re: Caching of Queries
  In-Reply-To: <330532b604092711591491303a@mail.gmail.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