The following query yields two different results when I run it as opposed to when a coworker runs it:
explain select *
from `mydatabase`.`Transactions` as `transaction`
join `mydatabase`.`Documents` as `document` on `document`.`version` = `transaction`.`documentVersion`
join `mydatabase`.`DocumentTopics` as `documentTopic` on `documentTopic`.`documentId` = `document`.`documentId`
join `mydatabase`.`Topics` on `mydatabase`.`Topics`.`id` = `documentTopic`.`topicID`
where `mydatabase`.`Topics`.`id` in (1,2)
and `transaction`.`userHash` = 'xxxxx';
On my machine:
On my coworkers machine:
So why is it doing a full table scan on my machine but not on my coworkers machine?
We're both using a dockerized MySQL 5.7.33 on Mac with the exact same db dump.
How is this possible?

