From: Andrew McMillan <andrew@catalyst.net.nz>
To: Marius Andreiana <marius@webdevgroup.com>
Cc: pgsql-php@postgresql.org
Subject: Re: How to manage search results?
Date: 10 Dec 2001 22:59:55 +1300
Message-ID: <1007978396.2311.6.camel@kant.mcmillan.net.nz> (raw)
In-Reply-To: <1007976478.8206.2.camel@aurora.wdg.ro>
References: <1007976478.8206.2.camel@aurora.wdg.ro>
On Mon, 2001-12-10 at 22:27, Marius Andreiana wrote:
>
> I was wondering how others manage search results.
I just construct my query in the normal way and append a LIMIT ...
OFFSET ... clause to control the finally select records.
Although this gets slower as the user pages and pages further through
the possibilities. I generally find that this is self-managing though
and the user issues a different search.
Have to watch for search engines though - they are, unfortunately,
indefatigable. If I recognise a search engine I don't provide the back
/ forward links...
For tables of a reasonable size (up to maybe 10,000 records) there is no
problem anyway, beyond that strange performance holes happen when
PostgreSQL doesn't always switch query plans at the right place...
Cheers,
Andrew.
--
--------------------------------------------------------------------
Andrew @ Catalyst .Net.NZ Ltd, PO Box 11-053, Manners St, Wellington
WEB: http://catalyst.net.nz/ PHYS: Level 2, 150-154 Willis St
DDI: +64(4)916-7201 MOB: +64(21)635-694 OFFICE: +64(4)499-2267
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: andrew@catalyst.net.nz, marius@webdevgroup.com
Subject: Re: How to manage search results?
In-Reply-To: <1007978396.2311.6.camel@kant.mcmillan.net.nz>
References: <1007976478.8206.2.camel@aurora.wdg.ro> <1007978396.2311.6.camel@kant.mcmillan.net.nz>
* 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