MySQL join not using index when adding a dependent join
When I perform EXPLAIN on the following query to fetch users with bookings SELECT user.id FROM user LEFT JOIN booking ON booking.user_id = user.id AND booking.end_timestamp > 1706878800 AND booking.end_timestamp <= 1706882400 AND booking.status IN ('pending', 'progress', 'done'); I get…