I wrote a simple query to find the `media_attachments` which are referencing accounts that no longer exist on our server. This took a long time, so I went to Home Depot to buy stuff I need for an IRL project.
I got a text message to my phone about the chassis being too warm 😅 -- when I came back an hour later it hadn't finished.
Then I rewrote the `IN` to be a `LEFT JOIN` and it ran in 9 seconds. Still got it.
Some tables are bigger so I'll be carrying on this evening; just thought I'd share.