pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marius Andreiana <marius@wdg.ro>
To: Andrew McMillan <andrew@catalyst.net.nz>
Cc: pgsql-php <pgsql-php@postgresql.org>
Subject: Re: How to manage search results?
Date: 10 Dec 2001 12:32:35 +0200
Message-ID: <1007980445.8519.0.camel@aurora.wdg.ro> (raw)
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>

On Lu, 2001-12-10 at 11:59, Andrew McMillan wrote:
> I just construct my query in the normal way and append a LIMIT ...
> OFFSET ... clause to control the finally select records.
I can't do that.

Some of the queries I use are complex; after you run a query you
can refine it, add to results, substract from results... I use
a table to build the results from initial query, then add/remove to it
as needed until search is done and finally user starts to
browse the results. I can't make it in one huge query.

For simple queries your solution is the best, no need for
a table; I assume you just save the query in a session variable.
I also assume your query doesn't take more than a second to run.

thanks
-- 
Marius Andreiana
--
You don't have to go to jail for helping your neighbour
http://www.gnu.org/philosophy/




view thread (6+ messages)  latest in thread

Message-ID: <1007980445.8519.0.camel@aurora.wdg.ro>
Permalink:  ../1007980445.8519.0.camel@aurora.wdg.ro/
Also on:    postgresql.org/message-id/1007980445.8519.0.camel@aurora.wdg.ro

 · 

reply

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: marius@wdg.ro, andrew@catalyst.net.nz
  Subject: Re: How to manage search results?
  In-Reply-To: <1007980445.8519.0.camel@aurora.wdg.ro>
  References: <1007976478.8206.2.camel@aurora.wdg.ro> <1007978396.2311.6.camel@kant.mcmillan.net.nz> <1007980445.8519.0.camel@aurora.wdg.ro>

* 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