Re: Suspending SELECTs - Mailing list pgsql-performance

From Josh Berkus
Subject Re: Suspending SELECTs
Date
Msg-id 200601171459.02398.josh@agliodbs.com
Whole thread Raw
In response to Re: Suspending SELECTs  (Alessandro Baretta <a.baretta@barettadeit.com>)
Responses Re: Suspending SELECTs  (Josh Berkus <josh@agliodbs.com>)
List pgsql-performance
Alessandro,

> I understand most of these issues, and expected this kind of reply.
> Please, allow me to insist that we reason on this problem and try to
> find a solution. My reason for doing so is that the future software
> industry is likely to see more and more web applications retrieving data
> from virtually endless databases, and in such contexts, it is sensible
> to ask the final client--the web client--to store the "cursor state",
> because web interaction is intrinsically asynchronous, and you cannot
> count on users logging out when they're done, releasing resources
> allocated to them. Think of Google.

I think you're trying to use an unreasonable difficult method to solve a
problem that's already been solved multiple times.  What you want is
called "query caching."   There are about 800 different ways to do this on
the middleware or application layer which are 1000% easier than what
you're proposing.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

pgsql-performance by date:

Previous
From: Frank Wiles
Date:
Subject: Re: Suspending SELECTs
Next
From: Fredrick O Jackson
Date:
Subject: Re: Multiple Order By Criteria