From: Jainendra Kumar P <JAINK@infosys.com>
To: pgsql-sql@postgresql.org
Subject: How can I optimize this query
Date: Tue, 9 Sep 2003 13:39:10 +0530
Message-ID: <284E845CC8F394409203F065D218205C044896@mysmsg03.ad.infosys.com> (raw)
I have the following query
UPDATE accumulator1 SET accumulator1.status = "User Excluded"
WHERE accumulator1.name NOT IN
(SELECT DISTINCT accumulator1.name
FROM accumulator1, diaaffectedstmts
WHERE diaaffectedstmts.stmt like '*'+ accumulator1.name +'*' and
diaaffectedstmts.xref_type <>
"D");
How can I optimize this query?
Thanks
Jain
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: JAINK@infosys.com
Subject: Re: How can I optimize this query
In-Reply-To: <284E845CC8F394409203F065D218205C044896@mysmsg03.ad.infosys.com>
* 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