From: mike <mike@partner2partner.com>
To: Postgres-PHP <pgsql-php@postgresql.org>
Subject: Re: using CURSOR with PHP
Date: Sat, 18 May 2002 23:18:14 GMT
Message-ID: <20020518231814.22057.qmail@conan.partner2partner.org> (raw)
In-Reply-To: <1021760653.30045.296.camel@kant.mcmillan.net.nz>
References: <B90BFA62.E93F%hierophant@pcisys.net>
<1021760653.30045.296.camel@kant.mcmillan.net.nz>
Andrew McMillan writes:
> PostgreSQL will certainly take LIMIT into account when planning queries.
I would think most queries using LIMIT would also include an ORDER BY clause
which would require PostgreSQL to sort all the results before applying the
LIMIT.
> OTOH PostgreSQL does _not_ do result caching, unless you have applied
> some patches that were floating around last year some time.
PostgreSQL might not do 'result caching' but if you have an adequate number
of buffers configured would it not be likely that the results from the last
query are still in memory?
Michael J. Upchurch
Partner2Partner Communications mike@partner2partner.com 615.286.2199
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: mike@partner2partner.com
Subject: Re: using CURSOR with PHP
In-Reply-To: <20020518231814.22057.qmail@conan.partner2partner.org>
References: <B90BFA62.E93F%hierophant@pcisys.net> <1021760653.30045.296.camel@kant.mcmillan.net.nz> <20020518231814.22057.qmail@conan.partner2partner.org>
* 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