Mysql – Nested loop inner join with index lookup and filter is slow
I have this query I'm running in MySQL: SELECT count(*) FROM library AS l JOIN plays AS p ON p.user_id = l.user_id AND l.path = p.path WHERE l.user_id = 20977 AND p.time >= '2022-10-17'; When EXPLAIN ANALYZE is run: |…