In case you have your own slow SQL query, you can optimize it automatically here.
For the query above, the following recommendations will be helpful as part of the SQL tuning process.
You'll find 3 sections below:
ALTER TABLE `people` ADD INDEX `people_idx_personpk` (`personPK`);
SELECT
1
FROM
people
WHERE
people.personPK NOT IN (
SELECT
attendees.personFK
FROM
attendees
UNION
SELECT
photo_tags.personFK
FROM
photo_tags
UNION
SELECT
email_subscriptions.personFK
FROM
email_subscriptions
)