Re: MERGE: performance advices - Mailing list pgsql-general

From Tom Lane
Subject Re: MERGE: performance advices
Date
Msg-id 16704.1220378287@sss.pgh.pa.us
Whole thread Raw
In response to Re: MERGE: performance advices  ("Richard Broersma" <richard.broersma@gmail.com>)
Responses Re: MERGE: performance advices
Re: MERGE: performance advices
List pgsql-general
"Richard Broersma" <richard.broersma@gmail.com> writes:
> There is one possible alteration that may or many not improve
> performance.  This would be to replace the EXISTS with a LEFT JOIN
> WHERE IS NOT NULL;

That changes the behavior, doesn't it?  Or is event_log_no a unique
key for Myevents?  I think what you want is to make the EXISTS an IN
instead.

            regards, tom lane

pgsql-general by date:

Previous
From: Steve Clark
Date:
Subject: Re: MERGE: performance advices
Next
From: Steve Clark
Date:
Subject: Re: MERGE: performance advices