How can I optimize this query

From: "Jainendra Kumar P" <JAINK(at)infosys(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: How can I optimize this query
Date: 2003-09-09 08:09:10
Message-ID: 284E845CC8F394409203F065D218205C044896@mysmsg03.ad.infosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2003-09-09 12:07:12 Re: undefine currval()
Previous Message Ian Barwick 2003-09-09 07:17:26 Re: Conversion from Sybase ASA