pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mitch Vincent <mitch@venux.net>
To: pgsql-sql@postgresql.org
Subject: Speedy query help..
Date: Mon, 10 Apr 2000 16:36:03 -0400
Message-ID: <004901bfa32c$63c051e0$4100000a@venux.net> (raw)
References: <NEBBLMLPILFNHKNECKIFIENOCAAA.robertn@eori.net.pl>
	<17328.955396227@sss.pgh.pa.us>

Any ideas on how I might speed this up? I know sub-selects are seriously
slow, I'm not sure what else can be done though.

DELETE from applicants_states WHERE app_id IN (SELECT s.app_id FROM
applicants_states AS s, applicants AS a WHERE s.app_id=a.app_id AND
(a.created + '90 days') < 'now' AND a.resubmitted < '10-03-1999')

Thanks!

- Mitch





view thread (2+ messages)  latest in thread

Message-ID: <004901bfa32c$63c051e0$4100000a@venux.net>
Permalink:  ../004901bfa32c$63c051e0$4100000a@venux.net/
Also on:    postgresql.org/message-id/004901bfa32c$63c051e0$4100000a@venux.net

 · 

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-sql@postgresql.org
  Cc: mitch@venux.net
  Subject: Re: Speedy query help..
  In-Reply-To: <004901bfa32c$63c051e0$4100000a@venux.net>
  References: <NEBBLMLPILFNHKNECKIFIENOCAAA.robertn@eori.net.pl> <17328.955396227@sss.pgh.pa.us> <004901bfa32c$63c051e0$4100000a@venux.net>

* 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