Re: using CURSOR with PHP

From: "mike" <mike(at)partner2partner(dot)com>
To: Postgres-PHP <pgsql-php(at)postgresql(dot)org>
Subject: Re: using CURSOR with PHP
Date: 2002-05-18 23:18:14
Message-ID: 20020518231814.22057.qmail@conan.partner2partner.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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(at)partner2partner(dot)com 615.286.2199

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Andrew McMillan 2002-05-18 23:59:34 Re: using CURSOR with PHP
Previous Message Andrew McMillan 2002-05-18 22:24:13 Re: using CURSOR with PHP