public inbox for [email protected]
help / color / mirror / Atom feedFrom: Shaozhong SHI <[email protected]>
To: pgsql-sql <[email protected]>
Subject: Looking for an efficient way to replace efficient NOT IN when landling very large data
Date: Tue, 11 Apr 2023 10:27:59 +0100
Message-ID: <CA+i5JwYoxnYGHXn41AgnN9iJP8FCMDMozgzsn5hc0tvhSSMNVg@mail.gmail.com> (raw)
Select a.id, a.name, b.id, b.name from a_large_table a, definitive b where (
a.id, b.name) not in
(select b.id, b.name from definitive b)
is very slow.
Is there a faster way to do so?
Regards,
David
view thread (3+ messages) latest in thread
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 using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Looking for an efficient way to replace efficient NOT IN when landling very large data
In-Reply-To: <CA+i5JwYoxnYGHXn41AgnN9iJP8FCMDMozgzsn5hc0tvhSSMNVg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox