Skip to main content

All Questions

Filter by
Sorted by
Tagged with
13 votes
4 answers
21k views

MySQL subquery slows down drastically, but they work fine independently

Query 1: select distinct email from mybigtable where account_id=345 takes 0.1s Query 2: Select count(*) as total from mybigtable where account_id=123 and email IN (<include all from above ...
Stewie's user avatar
  • 395