Why is MySQL not using my PRIMARY index on a large table?
I have a query like this: EXPLAIN SELECT b.* FROM bills b WHERE (b.id IN (SELECT u.id FROM bills u WHERE u.updated BETWEEN '2023-12-19 14:17:48' AND '2023-12-19 14:27:40' AND u.organisation_id = 'ABC123') OR b.id IN (SELECT c.id FROM bills c…