Received: from deborah.paradise.net.nz (deborah.paradise.net.nz [203.96.152.32]) by postgresql.org (8.11.3/8.11.4) with ESMTP id fBAA01m97210 for ; Mon, 10 Dec 2001 05:00:01 -0500 (EST) (envelope-from andrew@catalyst.net.nz) Received: from heidegger.catalyst.net.nz (203-96-145-223.adsl.paradise.net.nz [203.96.145.223]) by deborah.paradise.net.nz (Postfix) with ESMTP id 5C00BD19DD; Mon, 10 Dec 2001 23:00:00 +1300 (NZDT) Received: from 127.0.0.1 (ident=unknown) by heidegger.catalyst.net.nz with esmtp (MasqMail 0.1.15) id 16DNE4-3tg-00; Mon, 10 Dec 2001 22:59:56 +1300 Subject: Re: How to manage search results? From: Andrew McMillan To: Marius Andreiana Cc: pgsql-php@postgresql.org In-Reply-To: <1007976478.8206.2.camel@aurora.wdg.ro> References: <1007976478.8206.2.camel@aurora.wdg.ro> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/1.0 (Preview Release) Date: 10 Dec 2001 22:59:55 +1300 Message-Id: <1007978396.2311.6.camel@kant.mcmillan.net.nz> Mime-Version: 1.0 X-Archive-Number: 200112/5 X-Sequence-Number: 780 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