I have a query that I want to add some log to, to drop results that successfully match when I add one more table to the JOIN.
I'm accomplishing this now with an additional WHERE IN statement instead:
SELECT blah blah FROM donation
WHERE donation.id NOT IN (SELECT donation_id FROM donation_relation)
I just worry that selecting all ID fields from this donation_relation table in the subquery will begin dragging when the table starts growing. What's the more efficient way (if it exists) to use JOIN to accomplish this exclusion? The two tables are joinable on donation.id and donation_relation.donation_id
Thanks!