Use SQL subqueries to count distinct 50x faster

289 points by toong

Read the article

Discussion on Hacker News