Re: how good is PostgreSQL - Mailing list pgsql-general

From Bryan White
Subject Re: how good is PostgreSQL
Date
Msg-id 025701c04384$66a1d5c0$2dd260d1@arcamax.com
Whole thread Raw
In response to how good is PostgreSQL  ("Arnold Gamboa" <arnold@php4us.com>)
List pgsql-general
>      Whenever a query is executed (not found in cache, etc.), the caching
> system would simply store the query, the results, and a list of tables
> queried.   When a new query came in, it would do a quick lookup in the
query
> hash to see if it already had the results.  If so, whammo. Whenever an
> insert/delete/update was sensed, it would look at the tables being
affected,
> and the caching mechanism would clear out the entries depending on those
> tables.

It seems to me that tracking the list of cached queries and watching for
queries that might invalidate them adds a lot of complexity to the back end
and the front end still has to establish the connection and wait transfer
the data over the socket.

On a more practical level, a backend solution would require someone with
fairly detailed knowlege of the internals of the backend.  A front end
solution can more likely to be implemented by someone not as knowlegable.

One of the big advantages of your technique is there is no code change at
the application level.  This means less database lock-in.  Maybe that is a
disadvantage too. ;-)



pgsql-general by date:

Previous
From: "Adam Lang"
Date:
Subject: Re: postgres on redhat 7.0
Next
From: "George Henry C. Daswani"
Date:
Subject: Problem with coalesce..